]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] scheduler: fix improper handling of duplicates __task_queue()
authorWilly Tarreau <w@1wt.eu>
Sat, 21 Mar 2009 11:51:40 +0000 (12:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 21 Mar 2009 11:57:06 +0000 (12:57 +0100)
commit26ca34e66e3fa47cf7dc1f2b2d41e74df6ffdb79
tree7f40ee6a869c5c23b542904855b55824dc2eefa9
parent218859ad6cacf0fbd812293eefc51b7877f115b3
[BUG] scheduler: fix improper handling of duplicates __task_queue()

The top of a duplicate tree is not where bit == -1 but at the most
negative bit. This was causing tasks to be queued in reverse order
within duplicates. While this is not dramatic, it's incorrect and
might lead to longer than expected duplicate depths under some
circumstances.
include/proto/task.h
src/task.c