mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-10 07:49:54 +00:00
BUG/MINOR: stats: fix missing comma in stats on agent drain
The csv stats format breaks when agent changes server state to drain. Tools like hatop, metric or check agents will fail due to this. This should be backported to 1.6.
This commit is contained in:
parent
635c0adec2
commit
0d6b7a490e
@ -3584,7 +3584,7 @@ static int stats_dump_sv_stats(struct stream_interface *si, struct proxy *px, in
|
|||||||
[SRV_STATS_STATE_NOLB] = "NOLB,",
|
[SRV_STATS_STATE_NOLB] = "NOLB,",
|
||||||
[SRV_STATS_STATE_DRAIN_GOING_DOWN] = "DRAIN %d/%d,",
|
[SRV_STATS_STATE_DRAIN_GOING_DOWN] = "DRAIN %d/%d,",
|
||||||
[SRV_STATS_STATE_DRAIN] = "DRAIN,",
|
[SRV_STATS_STATE_DRAIN] = "DRAIN,",
|
||||||
[SRV_STATS_STATE_DRAIN_AGENT] = "DRAIN (agent)",
|
[SRV_STATS_STATE_DRAIN_AGENT] = "DRAIN (agent),",
|
||||||
[SRV_STATS_STATE_NO_CHECK] = "no check,"
|
[SRV_STATS_STATE_NO_CHECK] = "no check,"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user