Changeset 657 for trunk/pdns/pdns/recursor_cache.cc
- Timestamp:
- 04/05/06 10:17:28 (4 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/recursor_cache.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/recursor_cache.cc
r656 r657 138 138 139 139 // cerr<<"storing "<< toLowerCanonic(qname)+"|"+qt.getName()<<"\n"; 140 140 141 141 bool isNew=false; 142 142 if(stored == d_cache.end()) { … … 144 144 isNew=true; 145 145 } 146 146 147 147 pair<vector<StoredRecord>::iterator, vector<StoredRecord>::iterator> range; 148 148 149 149 StoredRecord dr; 150 150 CacheEntry ce=*stored; 151 152 if(qt.getCode()==QType::SOA || qt.getCode()==QType::CNAME) // you can only have one (1) each of these 153 ce.d_records.clear(); 154 151 155 152 156 for(set<DNSResourceRecord>::const_iterator i=content.begin(); i != content.end(); ++i) { … … 239 243 lookAt=5*toTrim; 240 244 else 241 lookAt= 10000;245 lookAt=0.02 * cacheSize; 242 246 243 247