From b4374c3c1f3662c18efc5a573182ca5e1c0d31bd Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 16 Nov 2023 09:07:54 +0100 Subject: [PATCH] rec: take into account throttled queries when determining if we had a cachehit Problem spotted by @zjs604381586 in #13483, though proposed fix was not correct. --- pdns/recursordist/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/pdns_recursor.cc b/pdns/recursordist/pdns_recursor.cc index 9d7d10a3d4..9435f555e5 100644 --- a/pdns/recursordist/pdns_recursor.cc +++ b/pdns/recursordist/pdns_recursor.cc @@ -1846,7 +1846,7 @@ void startDoResolve(void* arg) // NOLINT(readability-function-cognitive-complexi } if (comboWriter->d_mdp.d_header.opcode == static_cast(Opcode::Query)) { - if (resolver.d_outqueries != 0 || resolver.d_authzonequeries != 0) { + if (resolver.d_outqueries != 0 || resolver.d_throttledqueries != 0 || resolver.d_authzonequeries != 0) { g_recCache->incCacheMisses(); } else { -- 2.47.2