Changeset 211 for trunk/pdns/pdns/packetcache.hh
- Timestamp:
- 12/22/03 12:53:41 (9 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/packetcache.hh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/packetcache.hh
r2 r211 123 123 int *statnummiss; 124 124 int *statnumentries; 125 int *d_deferred_inserts; 126 int *d_deferred_lookups; 125 127 }; 126 128 127 129 inline int PacketCache::get(DNSPacket *p, DNSPacket *cached) 128 130 { 129 extern StatBag S;130 131 if(!((d_hit+d_miss)%5000)) { 131 132 cleanup(); … … 170 171 TryReadLock l(&d_mut); // take a readlock here 171 172 if(!l.gotIt()) { 172 S.inc("deferred-cache-lookup");173 (*d_deferred_lookups)++; 173 174 return 0; 174 175 }