]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: replace data in the aggressive cache if it becomes available
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 8 Aug 2023 10:15:00 +0000 (12:15 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 21 Aug 2023 11:45:00 +0000 (13:45 +0200)
commit63406ef9f8ebb0873bb7cb5baa5f8cbbb209c54f
tree859539f48264f08c4d80a4631b83e7ad806dc386
parent095813aedfd8470f8466c5182f5f4b58ac9040d4
rec: replace data in the aggressive cache if it becomes available

Currently, new data does not get recorded into the aggressive cache
if there's an existing entry that matches. Together with the fact
that in some cases pruning can be unfair (it scans the zones
always in the same order and stops clearing when it has reached the
goal) and/or not very active (when the recursor is lighlty loaded)
this has the consequence that old expired records can remain in
the cache that prevent new data to be recorded and used.

(cherry picked from commit 93b25e9613f252bc1798975dc1f7a475400f2996)
pdns/recursordist/aggressive_nsec.cc
pdns/recursordist/test-aggressive_nsec_cc.cc