]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: pools: simplify the pool expression when no pool was matched in dump
authorWilly Tarreau <w@1wt.eu>
Wed, 13 Sep 2023 11:31:41 +0000 (13:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 Sep 2023 11:31:41 +0000 (13:31 +0200)
commit5abbae2d3d292039a3ad4b45128a69d538c7e88d
treeb8733d8bed71c97271c44a9918f0efd2633cdf4c
parentc618ed5ff41ce29454e784c610b23bad0ea21f4f
CLEANUP: pools: simplify the pool expression when no pool was matched in dump

When dumping pool information, we make a special case of the condition
where the pool couldn't be identified and we consider that it was the
correct one. In the code arrangements brought by commit efc46dede ("DEBUG:
pools: inspect pools on fatal error and dump information found"), a
ternary expression for testing this depends on the "if" block condition
so this can be simplified and will make Coverity happy. This was reported
in GH #2290.
src/pool.c