From: Bert Hubert Date: Sun, 18 Nov 2012 19:06:12 +0000 (+0000) Subject: share pleaseWipeAndCache beyond rec_control X-Git-Tag: auth-3.2-rc2~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c13e3c1b704f15904e00ed82171699969e3a51a;p=thirdparty%2Fpdns.git share pleaseWipeAndCache beyond rec_control git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2901 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/rec_channel_rec.cc b/pdns/rec_channel_rec.cc index d6d850ccde..60aecc5277 100644 --- a/pdns/rec_channel_rec.cc +++ b/pdns/rec_channel_rec.cc @@ -197,7 +197,7 @@ uint64_t* pleaseWipeCache(const std::string& canon) } -static uint64_t* pleaseWipeAndCountNegCache(const std::string& canon) +uint64_t* pleaseWipeAndCountNegCache(const std::string& canon) { uint64_t res = t_sstorage->negcache.count(tie(canon)); pair range=t_sstorage->negcache.equal_range(tie(canon)); diff --git a/pdns/syncres.hh b/pdns/syncres.hh index 344ae079c8..b3ab70567b 100644 --- a/pdns/syncres.hh +++ b/pdns/syncres.hh @@ -551,5 +551,6 @@ uint64_t* pleaseGetThrottleSize(); uint64_t* pleaseGetPacketCacheHits(); uint64_t* pleaseGetPacketCacheSize(); uint64_t* pleaseWipeCache(const std::string& canon); +uint64_t* pleaseWipeAndCountNegCache(const std::string& canon); #endif