CLEANUP: pools: make the local cache allocator fall back to the shared cache
authorWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 06:56:22 +0000 (08:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 13:24:33 +0000 (15:24 +0200)
commitd56db11447658b8e2082e590e293b19f2766b597
treeb3f8dcb9dd88f3f3f0a3b1483b9106de1cb1b890
parentfa19d20ac4fbfc04441143128108f5d8807bf983
CLEANUP: pools: make the local cache allocator fall back to the shared cache

Now when pool_get_from_local_cache() fails, it automatically falls back
to pool_get_from_shared_cache(), which used to always be done in
pool_get_from_cache(). Thus now the API is simpler as we always allocate
and free from/to the local caches.
include/haproxy/pool.h