mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MINOR: stats: tracking servers may incorrectly report an inherited DRAIN status
The DRAIN status is not inherited between tracked servers, so the stats page must only use the reported server's status and not the tracked server's status, otherwise it misleadingly indicates a DRAIN state when a server tracks a draining server, while this is wrong.
This commit is contained in:
parent
0943757a21
commit
efe282260e
@ -3627,7 +3627,7 @@ static int stats_dump_proxy_to_buffer(struct stream_interface *si, struct proxy
|
||||
else
|
||||
sv_state = 2; /* going down */
|
||||
|
||||
if (server_is_draining(svs))
|
||||
if (server_is_draining(sv))
|
||||
sv_state += 4;
|
||||
else if (svs->state & SRV_GOINGDOWN)
|
||||
sv_state += 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user