From 0d6b7a490e1ed32424dc7c9b0d0aa3cdb8514a8e Mon Sep 17 00:00:00 2001 From: Raghu Udiyar Date: Fri, 5 Feb 2016 22:30:11 +0530 Subject: [PATCH] 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. --- src/dumpstats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index f43a5cc83..b868ef56e 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -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_DRAIN_GOING_DOWN] = "DRAIN %d/%d,", [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," };