]> 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>
Tue, 8 Aug 2023 10:31:09 +0000 (12:31 +0200)
commit93b25e9613f252bc1798975dc1f7a475400f2996
tree1671318faba8542db518108550e77f3be78b327a
parentf8fb9ffb6e33f0ff4a6e1e73f0e354e52a644f5b
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.
pdns/recursordist/aggressive_nsec.cc
pdns/recursordist/test-aggressive_nsec_cc.cc