]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] log: reported queue position was offed-by-one
authorWilly Tarreau <w@1wt.eu>
Fri, 13 Jun 2008 19:48:18 +0000 (21:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Jun 2008 13:22:51 +0000 (15:22 +0200)
commit3d85ee3be001ea866db9487f035222df2a345586
treeffc038b31ae1be7dc56e588fd983a3da8e7ea9ec
parent8857af4b00b40d76b398dccf8d6fb46a41521aac
[BUG] log: reported queue position was offed-by-one

The reported queue position in the logs was 0 for the first pending request
in the queue, which is wrong because it means that one request will have to
be completed before the queued one may execute. It caused the undesired side
effect that 0/0 was reported when either 0 or 1 request was pending in the
queue. Thus, we have to increment the queue size before reporting the value.
src/queue.c