]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tasks: Don't account a destroyed task as a runned task.
authorOlivier Houchard <cognet@ci0.org>
Wed, 17 Apr 2019 20:53:41 +0000 (22:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Apr 2019 08:11:13 +0000 (10:11 +0200)
commit1cfac37b654f569b629f5380dafb7b5a129789cf
tree01147982711ad019324ab5e85d2dac11090849d8
parent3f795f76e87549183ee2985754857e23750d7e5f
MEDIUM: tasks: Don't account a destroyed task as a runned task.

In process_runnable_tasks(), if the task we're about to run has been
destroyed, and should be free, don't account for it in the number of task
we ran. We're only allowed a maximum number of tasks to run per call to
process_runnable_tasks(), and freeing one shouldn't take the slot of a
valid task.
src/task.c