DEBUG: pools: add extra sanity checks when picking objects from a local cache
authorWilly Tarreau <w@1wt.eu>
Wed, 9 Feb 2022 15:23:55 +0000 (16:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Feb 2022 06:42:00 +0000 (07:42 +0100)
commitebeb66645ec529285d63c64773d2bc74ca7f4a58
tree924dd42d121a908b467d7bc3e12b8e60d77639b1
parentcc5504f86409b754317bdc2d4dc8e2c554a25549
DEBUG: pools: add extra sanity checks when picking objects from a local cache

These few checks are added to make sure we never try to pick an object from
an empty list, which would have a devastating effect.

(cherry picked from commit e2830addda9baf42c682d7c1856a53e2875deea4)
[wt: adjusted context]
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/pool.h
src/pool.c