From b6dfe35e1d02c89ada5b656fdf8956304bb73be8 Mon Sep 17 00:00:00 2001 From: George Thessalonikefs Date: Tue, 4 Oct 2022 10:28:36 +0200 Subject: [PATCH] - Allow for easier testing (to be reverted). --- iterator/iterator.c | 2 +- services/mesh.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/iterator/iterator.c b/iterator/iterator.c index 7c5a0fc43..c03f7674f 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -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"); diff --git a/services/mesh.c b/services/mesh.c index 9007b6e08..f28ecb015 100644 --- a/services/mesh.c +++ b/services/mesh.c @@ -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; } -- 2.47.3