]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: pools: get rid of CONFIG_HAP_POOLS
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Dec 2022 16:45:08 +0000 (17:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Dec 2022 16:45:08 +0000 (17:45 +0100)
commit4da51bd19091df2ad29917f7f4bc567c51cf0d89
treed34fdb6a798642ba9e9d9c2abf936178fbee1644
parenta95636682db151c67cb674eb23ca627a000354de
CLEANUP: pools: get rid of CONFIG_HAP_POOLS

This one was set in defaults.h only when neither DEBUG_NO_POOLS nor
DEBUG_UAF were set. This was not the most convenient location to look
for it, and it was only used in pool.c to decide on the initial value
of POOL_DBG_NO_CACHE.

Let's just use DEBUG_NO_POOLS || DEBUG_UAF directly on this flag and
get rid of the intermediary condition. This also has the benefit of
removing a double inversion, which is always nice for understanding.
include/haproxy/defaults.h
src/pool.c