]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: get rid of POOL_EXTRA
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 09:03:11 +0000 (10:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 16:11:33 +0000 (17:11 +0100)
commit42705d06b71afdd9418675ab895ec1f109d530af
tree143393d22c08f592d30143323ab5313363d454a7
parent96d5bc7379f04aa7652d786bce15f2501d564515
MINOR: pools: get rid of POOL_EXTRA

This macro is build-time dependent and is almost unused, yet where it
cannot easily be avoided. Now that we store the distinction between
pool->size and pool->alloc_sz, we don't need to maintain it and we
can instead compute it on the fly when creating a pool. This is what
this patch does. The variables are for now pretty static, but this is
sufficient to kill the macro and will allow to set them more dynamically.
include/haproxy/pool.h
src/pool.c