]> 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:23:40 +0000 (15:23 +0200)
commit39b60808c858b519d1b0325429de856a3c1a9ef4
treef254685f717f6bd7fa48e8bee2f94a230d864bb0
parented2b8120a4bfcdd5ff4f55782c56d84caef55b85
[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