mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-15 02:50:53 -04:00
chg: dev: Mark the related slabheader as visited on cache hit
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. Merge branch 'ondrej/mark-related-header-visited-on-cache-hit' into 'main' See merge request isc-projects/bind9!12306
This commit is contained in:
commit
1a2d276d3f
1 changed files with 3 additions and 3 deletions
|
|
@ -499,10 +499,10 @@ qpcache_miss(qpcache_t *qpdb, dns_slabheader_t *newheader,
|
|||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue