From: Otto Moerbeek Date: Thu, 16 Nov 2023 08:07:54 +0000 (+0100) Subject: rec: take into account throttled queries when determining if we had a cachehit X-Git-Tag: rec-5.0.0-rc1~35^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13497%2Fhead;p=thirdparty%2Fpdns.git 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. --- 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 {