]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: pools: move the lock to the only __pool_get_first() that needs it
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Apr 2021 17:48:44 +0000 (19:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 13:24:33 +0000 (15:24 +0200)
commit254321183019117f90360cc18a810c22a46dab01
tree82c31ce95eaa05953857a3c2b3c349270485c1e7
parent8ee9df57db622d518713c68cf7345794ed744330
CLEANUP: pools: move the lock to the only __pool_get_first() that needs it

Now that __pool_alloc() only surrounds __pool_get_first() with the lock,
let's move it to the only variant that requires it and remove the ugly
ifdefs from the function. This is safe because nobody else calls this
function.
include/haproxy/pool.h