]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: drop the unused static history of artificially failed allocs
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Apr 2021 14:36:07 +0000 (16:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 13:24:33 +0000 (15:24 +0200)
commit3e970b11ebc402ef6e23c50794db823143e0c526
tree5e837af502c3dbcf7e0ed8f8349651ceb7b8d0b9
parenta5b229d01db53001fc13986ac193379f34eebc72
MINOR: pools: drop the unused static history of artificially failed allocs

When building with DEBUG_FAIL_ALLOC we call a random generator to decide
whether the pool alloc should succeed or fail, and there was a preliminary
debugging mechanism to keep sort of a history of the previous decisions. But
it was never used, enforces a lock during the allocation, and forces to use
static variables, all of which are limiting the ability to pursue the pools
cleanups with no real benefit. Let's get rid of them now.
src/pool.c