]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: add a new debugging flag POOL_DBG_INTEGRITY
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Feb 2022 17:42:53 +0000 (18:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 16:11:33 +0000 (17:11 +0100)
commit6f3c7f6e6a23c8c4385b1f844f22ff6ff2d5c0c8
tree9962071648637429dd78302f8f7ba5ae022b987f
parentd3470e1ce8c31e7c20ac5d2b6e93dc777c3842c6
MINOR: pools: add a new debugging flag POOL_DBG_INTEGRITY

The test to decide whether or not to enforce integrity checks on cached
objects is now enabled at runtime and conditionned by this new debugging
flag. While previously it was not a concern to inflate the code size by
keeping the two functions static, they were moved to pool.c to limit the
impact. In pool_get_from_cache(), the fast code path remains fast by
having both flags tested at once to open a slower branch when either
POOL_DBG_COLD_FIRST or POOL_DBG_INTEGRITY are set.
include/haproxy/pool-t.h
include/haproxy/pool.h
src/pool.c