MINOR: pools: make the basic pool_refill_alloc()/pool_free() update needed_avg
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Apr 2021 15:23:15 +0000 (17:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 13:24:33 +0000 (15:24 +0200)
commit64383b81818c7f6228c45b80f126abeb90ba5712
tree35573c08776908fb37f7ce602332056a89d4f21f
parent53a7fe49aa0177cbc6f1709b4da268556ef36e09
MINOR: pools: make the basic pool_refill_alloc()/pool_free() update needed_avg

This is a first step towards unifying all the fallback code. Right now
these two functions are the only ones which do not update the needed_avg
rate counter since there's currently no shared pool kept when using them.
But their code is similar to what could be used everywhere except for
this one, so let's make them capable of maintaining usage statistics.

As a side effect the needed field in "show pools" will now be populated.
include/haproxy/pool.h
src/pool.c