]> git.kaiwu.me - haproxy.git/commit
DEBUG: pools: let's add reverse mapping from cache heads to thread and pool
authorWilly Tarreau <w@1wt.eu>
Wed, 9 Feb 2022 15:33:22 +0000 (16:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Feb 2022 19:10:43 +0000 (20:10 +0100)
commit49bb5d4268adaea64490ee20f4d73d94afe6a903
tree77346ad1101ac181ee4b57fb9083bad029df43c7
parente2830addda9baf42c682d7c1856a53e2875deea4
DEBUG: pools: let's add reverse mapping from cache heads to thread and pool

During global eviction we're visiting nodes from the LRU tail and we
determine their pool cache head and their pool. In order to make sure
we never mess up, let's add some backwards pointer to the thread number
and pool from the pool_cache_head. It's 64-byte aligned anyway so we're
not wasting space and it helps for debugging and will prevent memory
corruption the earliest possible.
include/haproxy/pool-t.h
src/pool.c