- Allow for easier testing (to be reverted).

This commit is contained in:
George Thessalonikefs 2022-10-04 10:28:36 +02:00
parent 9e53506240
commit b6dfe35e1d
2 changed files with 3 additions and 1 deletions

View file

@ -2777,7 +2777,7 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
if(can_do_promisc && tf_policy == 0 && iq->depth == 0
&& ie->target_fetch_policy[iq->depth] != 0
&& iq->dp_target_count == 0
&& !ub_random_max(qstate->env->rnd, 10)) {
/* XXX && !ub_random_max(qstate->env->rnd, 10)*/) {
int extra = 0;
verbose(VERB_ALGO, "available target exists in cache but "
"attempt to get extra 1 target");

View file

@ -2246,7 +2246,9 @@ mesh_serve_expired_callback(void* arg)
int mesh_jostle_exceeded(struct mesh_area* mesh)
{
/* XXX
if(mesh->all.count < mesh->max_reply_states)
return 0;
*/
return 1;
}