]> 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>
Mon, 26 Sep 2016 18:37:05 +0000 (20:37 +0200)
pdns/packetcache.cc

index ddb625cd11940e2ea4ffa0988ea036a2fac5c508..29de6481926f84fabe0ba725db421eea756a476d 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 {
@@ -391,7 +391,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");