]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-tables: Optimize the expiration process a bit.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 5 Nov 2025 18:18:21 +0000 (19:18 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 5 Nov 2025 18:22:11 +0000 (19:22 +0100)
commit201971ec5fb4232bcf95a36fb9ea7d4b6ef1c844
treef331898ce7e055d704790e450e921c6241ce54c8
parent93f994e8b17d270cf86af74b4efa508ea4cc9293
MEDIUM: stick-tables: Optimize the expiration process a bit.

In process_tables_expire(), if the table we're analyzing still has
entries, and thus should be put back into the tree, do not put it in the
mt_list, to have it put back into the tree the next time the task runs.
There is no problem with putting it in the tree right away, as either
the next expiration is in the future, or we handled the maximum number
of expirations per task call and we're about to stop, anyway.

This does not need to be backported.
src/stick_table.c