]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
retain output when expunging from multiple caches 12077/head
authorChristof Chen <christof@chen.de>
Fri, 7 Oct 2022 20:58:02 +0000 (22:58 +0200)
committerChristof Chen <christof@chen.de>
Fri, 7 Oct 2022 20:58:02 +0000 (22:58 +0200)
pdns/dnsdistdist/dnsdist-lua-bindings-packetcache.cc

index fb560c5687e2bbe0b6b70e036581563efd59ece7..184ff33c2874bc02ebf4a84fe77f82c682d9c9be 100644 (file)
@@ -166,7 +166,7 @@ void setupLuaBindingsPacketCache(LuaContext& luaCtx, bool client)
                   qname = DNSName(boost::get<string>(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<void(std::shared_ptr<DNSDistPacketCache>::*)()const>("printStats", [](const std::shared_ptr<DNSDistPacketCache>& cache) {