]> git.ipfire.org Git - thirdparty/bind9.git/commit
Process the combined LRU lists in LRU order
authorMark Andrews <marka@isc.org>
Thu, 23 Nov 2023 04:47:35 +0000 (15:47 +1100)
committerMark Andrews <marka@isc.org>
Thu, 7 Dec 2023 02:59:04 +0000 (02:59 +0000)
commit5e8f0e9ceb02ae3ffdabe1b3fbd9cc66b4b506d3
treedbed94caba15d76d3c0731d270fa0cb09b1b0f11
parent8af6fc44e0cd64aedffc616c7449cd1d89dab384
Process the combined LRU lists in LRU order

Only cleanup headers that are less than equal to the rbt's last_used
time.  Adjust the rbt's last_used time when the target cleaning was
not achieved to the oldest value of the remaining set of headers.

When updating delegating NS and glue records last_used was not being
updated when it should have been.

When adding zero TTL records to the tail of the LRU lists set
last_used to rbtdb->last_used + 1 rather than now.  This appoximately
preserves the lists LRU order.
lib/dns/rbt-cachedb.c
lib/dns/rbtdb.c
lib/dns/rbtdb_p.h