From: Kees Monshouwer Date: Mon, 26 Sep 2016 18:31:22 +0000 (+0200) Subject: remove some outdated comments in packetcache.cc X-Git-Tag: auth-4.0.2~19^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c03126b1fab2746900bb4421e9bed309c82175a;p=pdns remove some outdated comments in packetcache.cc --- diff --git a/pdns/packetcache.cc b/pdns/packetcache.cc index 9ec03e028..8b20949a1 100644 --- a/pdns/packetcache.cc +++ b/pdns/packetcache.cc @@ -261,7 +261,7 @@ int PacketCache::purgeExact(const DNSName& qname) delcount+=distance(range.first, range.second); mc.d_map.erase(range.first, range.second); } - *d_statnumentries-=delcount; // XXX FIXME NEEDS TO BE ADJUSTED (for packetcache shards) + *d_statnumentries-=delcount; return delcount; } @@ -286,7 +286,7 @@ int PacketCache::purge(const string &match) } mc.d_map.erase(start, iter); } - *d_statnumentries-=delcount; // XXX FIXME NEEDS TO BE ADJUSTED (for packetcache shards) + *d_statnumentries-=delcount; return delcount; } else { @@ -377,7 +377,6 @@ map PacketCache::getCounts() } -/** readlock for figuring out which iterators to delete, upgrade to writelock when actually cleaning */ void PacketCache::cleanup() { unsigned int maxCached=::arg().asNum("max-cache-entries");