]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-tables: Stop as soon as stktable_trash_oldest succeeds.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 15 Oct 2025 14:01:21 +0000 (16:01 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 20 Oct 2025 13:04:47 +0000 (15:04 +0200)
commitcd92aeb3661e2312aa604186f732cfe77d369ea0
tree681297a523cb4d30b8f7c0dd34cf212b3fbbda34
parent7854331c718bc8dcd6ed9cd3bc3c3932fdc9945b
MEDIUM: stick-tables: Stop as soon as stktable_trash_oldest succeeds.

stktable_trash_oldest() goes through all the shards, trying to free a
number of entries. Going through each shard is expensive, as we have to
take the shard lock, so stop as soon as we free'd at least one entry, as
it is only called when we want to make room for one entry.
src/stick_table.c