]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove the ANCIENT slabheader attribute and statistics counter
authorOndřej Surý <ondrej@isc.org>
Fri, 19 Jun 2026 13:43:42 +0000 (15:43 +0200)
committerOndřej Surý <ondrej@sury.org>
Mon, 22 Jun 2026 11:45:18 +0000 (13:45 +0200)
commit06abfa32642630a8639e54ce22ca972ec496e793
tree57dfa97da7ce8cb91e58140b091500d0b59d3387
parent5b50f4133adca8c14e64aef22ff38819074fb9c1
Remove the ANCIENT slabheader attribute and statistics counter

Cache headers are now unlinked from their node as soon as they expire,
so a slabheader is never left in the "ancient, awaiting cleanup" state
that DNS_SLABHEADERATTR_ANCIENT tracked.  Drop the attribute, rename
mark_ancient() to header_delete() to reflect that it now removes the
header rather than flagging it (keying idempotency on list membership),
and remove the ancient RRset statistics counter that recorded the state,
which is now always zero; the rdataset statistics array shrinks to
match.

The rdataset-level 'ancient' flag and 'rndc dumpdb -expired' are
unaffected: expiry is derived from the entry's TTL when the rdataset is
bound, not from the slabheader attribute.
bin/named/statschannel.c
lib/dns/include/dns/rdataslab.h
lib/dns/include/dns/stats.h
lib/dns/masterdump.c
lib/dns/qpcache.c
lib/dns/rdataslab_p.h
lib/dns/stats.c
tests/dns/rdatasetstats_test.c