We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When calling expungeByName multiple times on the same line, there is only one line of output (the last one)
preload the cache with entries for www.google.com and www.amazon.com, and expunge the records from the cache in one line:
getPool(""):getCache():expungeByName("www.google.com") getPool(""):getCache():expungeByName("www.amazon.com") Expunged 1 records
Expunged 1 records Expunged 1 records
Expunged 1 records (single line)
The output should be appended, not overwritten here:
diff --git a/pdns/dnsdistdist/dnsdist-lua-bindings-packetcache.cc b/pdns/dnsdistdist/dnsdist-lua-bindings-packetcache.cc index fb560c568..184ff33c2 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<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) {
The text was updated successfully, but these errors were encountered:
Merged
Sorry, something went wrong.
No branches or pull requests
Short description
When calling expungeByName multiple times on the same line, there is only one line of output (the last one)
Environment
Steps to reproduce
preload the cache with entries for www.google.com and www.amazon.com, and expunge the records from the cache in one line:
Expected behaviour
Expunged 1 records
Expunged 1 records
Actual behaviour
Expunged 1 records (single line)
Other information
The output should be appended, not overwritten here:
The text was updated successfully, but these errors were encountered: