]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: prepare pool_item to support chained clusters
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 13:35:57 +0000 (14:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 18:35:26 +0000 (19:35 +0100)
commit148160b027eb91461761e4970a879c5ae15a4a59
tree891b145eccf369a4078a3c51ddb9d5c831e0ba23
parent361e31e3fecb41443425d4f2e6ed00ccf50a3d18
MINOR: pools: prepare pool_item to support chained clusters

In order to support batched allocations and releases, we'll need to
prepare chains of items linked together and that can be atomically
attached and detached at once. For this we implement a "down" pointer
in each pool_item that points to the other items belonging to the same
group. For now it's always NULL though freeing functions already check
them when trying to release everything.
include/haproxy/pool-t.h
src/pool.c