A cache hit only marked the looked-up header as SIEVE-visited, leaving
its related header (the flattened counterpart) a candidate for eviction.
Mark both so related slabheaders age together.
static void
qpcache_hit(qpcache_t *qpdb ISC_ATTR_UNUSED, dns_slabheader_t *header) {
- /*
- * On cache hit, we only mark the header as seen.
- */
ISC_SIEVE_MARK(header, visited);
+ if (header->related) {
+ ISC_SIEVE_MARK(header->related, visited);
+ }
}
/*