Permalink
Browse files

remove some outdated comments in packetcache.cc

  • Loading branch information...
1 parent 5656e12 commit 8c03126b1fab2746900bb4421e9bed309c82175a @mind04 mind04 committed with mind04 Sep 26, 2016
Showing with 2 additions and 3 deletions.
  1. +2 −3 pdns/packetcache.cc
View
@@ -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<char,int> 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");

0 comments on commit 8c03126

Please sign in to comment.