From: Christof Chen Date: Fri, 7 Oct 2022 20:58:02 +0000 (+0200) Subject: retain output when expunging from multiple caches X-Git-Tag: dnsdist-1.8.0-rc1~282^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12077%2Fhead;p=thirdparty%2Fpdns.git retain output when expunging from multiple caches --- diff --git a/pdns/dnsdistdist/dnsdist-lua-bindings-packetcache.cc b/pdns/dnsdistdist/dnsdist-lua-bindings-packetcache.cc index fb560c5687..184ff33c28 100644 --- a/pdns/dnsdistdist/dnsdist-lua-bindings-packetcache.cc +++ b/pdns/dnsdistdist/dnsdist-lua-bindings-packetcache.cc @@ -166,7 +166,7 @@ void setupLuaBindingsPacketCache(LuaContext& luaCtx, bool client) qname = DNSName(boost::get(dname)); } if (cache) { - g_outputBuffer="Expunged " + std::to_string(cache->expungeByName(qname, qtype ? *qtype : QType(QType::ANY).getCode(), suffixMatch ? *suffixMatch : false)) + " records\n"; + g_outputBuffer+="Expunged " + std::to_string(cache->expungeByName(qname, qtype ? *qtype : QType(QType::ANY).getCode(), suffixMatch ? *suffixMatch : false)) + " records\n"; } }); luaCtx.registerFunction::*)()const>("printStats", [](const std::shared_ptr& cache) {