]> git.kaiwu.me - haproxy.git/commit
MINOR: cache: track full and hints entries in per-pool LRU lists
authorMaxime Henrion <mhenrion@haproxy.com>
Tue, 30 Jun 2026 15:05:19 +0000 (11:05 -0400)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Jul 2026 14:42:35 +0000 (16:42 +0200)
commitb089325f0e9903c18614c426cd038d3af95723e6
treed93f7efb26f88f0a16a4f8456b3d3de9d7d1a2e9
parent731b71363f51c03b4517059dcb3945f667a82042
MINOR: cache: track full and hints entries in per-pool LRU lists

Introduce two LRU lists in struct cache (full_lru and hints_lru) and an
"lru" link in struct cache_entry, plus a CACHE_EF_STRIPPED flag to
mark hints-only entries. A new cache_row_reattach() helper places each
entry in the appropriate LRU when a row is returned to the cold pool.

No behaviour change yet: the lists are populated but no code consumes
them. The next commit uses them to drive early hints-aware eviction.
src/cache.c