]> git.kaiwu.me - haproxy.git/commit
MINOR: pool: introduce pool_item to represent shared pool items
authorWilly Tarreau <w@1wt.eu>
Sat, 1 Jan 2022 17:22:20 +0000 (18:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 18:35:26 +0000 (19:35 +0100)
commitc16ed3b090df1d8452d4dea85400d9100f89e712
treeed537c6f5eca2aa2c5233df5afbbf9aff275fedb
parentb46674a2839950769113c298d880ed01ca12339a
MINOR: pool: introduce pool_item to represent shared pool items

In order to support batch allocation from/to shared pools, we'll have to
support a specific representation for pool objects. The new pool_item
structure will be used for this. For now it only contains a "next"
pointer that matches exactly the current storage model. The few functions
that deal with the shared pool entries were adapted to use the new type.
There is no functionality difference at this point.
include/haproxy/pool-t.h
include/haproxy/pool.h
src/pool.c