Changeset 856
- Timestamp:
- 06/18/06 19:44:02 (7 years ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 2 modified
-
recursor_cache.cc (modified) (2 diffs)
-
recursor_cache.hh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/recursor_cache.cc
r843 r856 209 209 bool isNew=false; 210 210 if(stored == d_cache.end()) { 211 stored=d_cache.insert(CacheEntry(key,vector<StoredRecord>() )).first;211 stored=d_cache.insert(CacheEntry(key,vector<StoredRecord>(), auth)).first; 212 212 isNew=true; 213 213 } … … 221 221 ce.d_records.clear(); 222 222 223 223 if(auth && !ce.d_auth) { 224 ce.d_records.clear(); // clear non-auth data 225 ce.d_auth = true; 226 } 227 224 228 for(set<DNSResourceRecord>::const_iterator i=content.begin(); i != content.end(); ++i) { 225 229 dr.d_ttd=i->ttl; -
trunk/pdns/pdns/recursor_cache.hh
r838 r856 78 78 string d_qname; 79 79 uint16_t d_qtype; 80 bool d_auth; 80 81 81 CacheEntry(const tuple<string, uint16_t>& key, const vector<StoredRecord>& records ) :82 d_qname(key.get<0>()), d_qtype(key.get<1>()), d_ records(records)82 CacheEntry(const tuple<string, uint16_t>& key, const vector<StoredRecord>& records, bool auth) : 83 d_qname(key.get<0>()), d_qtype(key.get<1>()), d_auth(auth), d_records(records) 83 84 {} 84 85