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:
Raghu Udiyar 2016-02-05 22:30:11 +05:30 committed by Willy Tarreau
parent 635c0adec2
commit 0d6b7a490e

View File

@ -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,"
}; };