From: Kees Monshouwer Date: Mon, 26 Sep 2016 18:31:22 +0000 (+0200) Subject: remove some outdated comments in packetcache.cc X-Git-Tag: dnsdist-1.1.0-beta2~108^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=067e61153e57a5b76e10e6dbd474ae1874253047;p=pdns remove some outdated comments in packetcache.cc --- diff --git a/pdns/packetcache.cc b/pdns/packetcache.cc index ddb625cd1..29de64819 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 { @@ -391,7 +391,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");