]> git.ipfire.org Git - thirdparty/pdns.git/commit
recursor: when replacing an expired entry, move it to the back 3352/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 10 Feb 2016 08:02:17 +0000 (09:02 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 10 Feb 2016 10:47:27 +0000 (11:47 +0100)
commit2b94bb415eb33d909e064cadea06a7c2fcea7380
tree91f54689499ae4b9dc0da34b9cf1611739396b46
parentec509caae3894b915332a53204321eb068846723
recursor: when replacing an expired entry, move it to the back

If we did a lookup earlier and found the entry to be expired,
we moved it to the front of the expunge queue. If we don't move
it to the back, and the next cache purging operation occurs before
a cache hit using this entry, it's very likely to get expunged.
pdns/recpacketcache.cc
pdns/recursor_cache.cc