mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
BUG/MINOR: queue: properly report redistributed connections
In commit 5cd4bbd7a
("BUG/MAJOR: threads/queue: Fix thread-safety issues
on the queues management") the counter of transferred connections was
accidently lost, so that when a server goes down with connections in its
queue, it will always be reported that 0 connection were transferred.
This should be backported as far as 1.8 since the patch above was
backported there.
This commit is contained in:
parent
8e8581e242
commit
ef71f0194c
@ -416,6 +416,7 @@ int pendconn_redistribute(struct server *s)
|
|||||||
p->strm_flags &= ~(SF_DIRECT | SF_ASSIGNED | SF_ADDR_SET);
|
p->strm_flags &= ~(SF_DIRECT | SF_ASSIGNED | SF_ADDR_SET);
|
||||||
|
|
||||||
task_wakeup(p->strm->task, TASK_WOKEN_RES);
|
task_wakeup(p->strm->task, TASK_WOKEN_RES);
|
||||||
|
xferred++;
|
||||||
}
|
}
|
||||||
return xferred;
|
return xferred;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user