From 9092736297419f6b5d9842421c6cd74d0add3300 Mon Sep 17 00:00:00 2001 From: Christof Chen Date: Fri, 7 Oct 2022 22:58:02 +0200 Subject: [PATCH] retain output when expunging from multiple caches --- pdns/dnsdistdist/dnsdist-lua-bindings-packetcache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.2