CLEANUP: pools: rename pool_*_{from,to}_cache() to *_local_cache()
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Apr 2021 18:12:48 +0000 (20:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 13:24:33 +0000 (15:24 +0200)
commit8c77ee5ae56beee8233f560684f09853694b1447
treea04d3dbec1025afc8a3b88982c02ce9ffa1352b1
parent2f03dcde911192bac77f696490b713a067e3deb6
CLEANUP: pools: rename pool_*_{from,to}_cache() to *_local_cache()

The functions were rightfully called from/to_cache when the thread-local
cache was considered as the only cache, but this is getting terribly
confusing. Let's call them from/to local_cache to make it clear that
it is not related with the shared cache.

As a side note, since pool_evict_from_cache() used not to work for a
particular pool but for all of them at once, it was renamed to
pool_evict_from_local_caches()  (plural form).
include/haproxy/pool.h
src/pool.c