]> granicus.if.org Git - pdns/commitdiff
remove some outdated comments in packetcache.cc
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 26 Sep 2016 18:31:22 +0000 (20:31 +0200)
committermind04 <mind04@monshouwer.org>
Sat, 1 Oct 2016 16:37:45 +0000 (18:37 +0200)
pdns/packetcache.cc

index 9ec03e02868db16c61965187e0cd2b360ab45d05..8b20949a169da8bab13ee6c5ec8dbc4de2574a25 100644 (file)
@@ -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");