]> granicus.if.org Git - pdns/commitdiff
share pleaseWipeAndCache beyond rec_control
authorBert Hubert <bert.hubert@netherlabs.nl>
Sun, 18 Nov 2012 19:06:12 +0000 (19:06 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sun, 18 Nov 2012 19:06:12 +0000 (19:06 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2901 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/rec_channel_rec.cc
pdns/syncres.hh

index d6d850ccdec665f0cf50f29de98ed581a775d4db..60aecc52777d710d1604df143f66c3175f372e16 100644 (file)
@@ -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<SyncRes::negcache_t::iterator, SyncRes::negcache_t::iterator> range=t_sstorage->negcache.equal_range(tie(canon));
index 344ae079c8f5353d7219e273efe62b259d1c1bc6..b3ab70567beac9160c6899072aef75c16514d58a 100644 (file)
@@ -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