]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tasks: More code factorization
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 29 Apr 2025 13:15:27 +0000 (15:15 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 30 Apr 2025 15:08:57 +0000 (17:08 +0200)
commit35df7cbe3468839e64830cdf67392dc04c7db4c9
tree34b1dd3c3d92e645cb81e144e958c4c89255451d
parent438c000e9f4c055efa3ae894f42f62cdf9503877
MEDIUM: tasks: More code factorization

There is some code that should run no matter if the task was killed or
not, and was needlessly duplicated, so only use one instance.
This also fixes a small bug when a tasklet that got killed before it
could run would still count as a tasklet that ran, when it should not,
which just means that we'd run one less useful task before going back to
the poller.
This commit is mostly cosmetic, and should not have any impact.
src/task.c