]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: move the fault injector to __pool_alloc()
authorWilly Tarreau <w@1wt.eu>
Sat, 17 Apr 2021 14:00:08 +0000 (16:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 13:24:33 +0000 (15:24 +0200)
commit207c0950982c1a4208995f0e0638c45ed2923bda
tree4bc327d8f5e26e9d4c9b622d9b842293d20de621
parent20f88abad5f2a7bca45d9a9288c93d8cc259ca70
MINOR: pools: move the fault injector to __pool_alloc()

Till now it was limited to objects allocated from the OS which means
it had little use as soon as pools were enabled. Let's move it upper
in the layers so that any code can benefit from fault injection. In
addition this allows to pass a new flag POOL_F_NO_FAIL to disable it
if some callers prefer a no-failure approach.
include/haproxy/pool-t.h
include/haproxy/pool.h
src/pool.c