From 067e61153e57a5b76e10e6dbd474ae1874253047 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Mon, 26 Sep 2016 20:31:22 +0200 Subject: [PATCH] remove some outdated comments in packetcache.cc --- pdns/packetcache.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"); -- 2.49.0