]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stick-tables: fix the task's next expiration date
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Apr 2024 07:57:32 +0000 (09:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Apr 2024 15:58:54 +0000 (17:58 +0200)
commit44a8f9e7fc4abcadbb72b1ac2cb41f7c788dae55
tree5d60cd87a82b525ac01af34085ccb4741906e767
parentd308c9a9f609c219f0146f94d6a075b44c11d175
BUG/MEDIUM: stick-tables: fix the task's next expiration date

While changing the stick-table indexing that led to commit 1a088da7c
("MAJOR: stktable: split the keys across multiple shards to reduce
contention"), I met a problem with the task's expiration date being
incorrectly updated, I fixed it and apparently I committed the wrong
version :-/

The effect is that the task's date is only correctly reset if the
table is empty, otherwise the task wakes up again and is queued at
the previous date, eating 100% CPU. The tick_isfirst() must not be
used when storing the last result.

No backport is needed as this was only merged in 3.0-dev7.
src/stick_table.c