]> git.ipfire.org Git - thirdparty/pdns.git/commit
recursor: Move replaced cached entries to the back 3451/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 24 Feb 2016 16:13:14 +0000 (17:13 +0100)
committerRemi Gacogne <remi.gacogne]powerdns.com>
Wed, 24 Feb 2016 16:13:14 +0000 (17:13 +0100)
commita072ce44f37abcfaac9f1400e9c2aa31016f7687
treeed913ebcb74a62e1b3811e24d45cdfcffd2271b2
parentcf4d2c932edfd52d710b1fd17f46f0653bf8edba
recursor: Move replaced cached entries to the back

When we replace an existing entry, it keeps its existing place in
the expunge queue, while new entries are inserted to the back and
hits are moved to the back.
Moving replaced entries to the back of the queue is more fair and
so probably more efficient, as it would increase the likelihood of
expunging unused expired entries from the cache.
pdns/recpacketcache.cc
pdns/recursor_cache.cc