mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-13 06:51:00 +01:00
BUG/MEDIUM: checks: also update the DRAIN state from the web interface
In commit 8c3d0be (MEDIUM: Add DRAIN state and report it on the stats page), the drain state was updated on every weight change except those that can be sent via the web interface. This caused inconsistent state combinations to be reported in the stats depending on the sequence (web then cli vs cli then web). It would seem that a call to set_server_drain_state() from within server_recalc_eweight() would simplify things but that's not completely certain yet.
This commit is contained in:
parent
ea292ae649
commit
0900bcbdbb
@ -2934,6 +2934,7 @@ int http_process_req_stat_post(struct stream_interface *si, struct http_txn *txn
|
|||||||
sv->uweight = 0;
|
sv->uweight = 0;
|
||||||
|
|
||||||
server_recalc_eweight(sv);
|
server_recalc_eweight(sv);
|
||||||
|
set_server_drain_state(sv);
|
||||||
|
|
||||||
altered_servers++;
|
altered_servers++;
|
||||||
total_servers++;
|
total_servers++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user