]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cache: Remove expired entry delete in "show cache" command
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 16 Nov 2023 16:38:16 +0000 (17:38 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 16 Nov 2023 18:35:10 +0000 (19:35 +0100)
commitff3cb6dad4eba1ab629b770e027664acc706588b
tree957ff7a64882a3f7e6e16b8a1c5d45063b0efb22
parentac9c49b40d229686d13d74414429d5ec8071067a
MINOR: cache: Remove expired entry delete in "show cache" command

The "show cache" CLI command iterates over all the entries of the cache
tree and it used this opportunity to remove expired entries from the
cache. This behavior was completely undocumented and does not seem that
necessary. By removing it we can take the cache lock in read mode only
which limits the impact on the other threads.
src/cache.c