From: Cyril Bonté Date: Sun, 11 May 2014 21:10:19 +0000 (+0200) Subject: OPTIM: stats: avoid the calculation of a useless link on tracking servers in maintenance X-Git-Tag: v1.5-dev26~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7fa7db7ce586fcb4b16dbc79fc159f058a024bd;p=thirdparty%2Fhaproxy.git OPTIM: stats: avoid the calculation of a useless link on tracking servers in maintenance Commit f465994198 removed the "via" link when a tracking server is in maintenance, but still calculated an empty link that no one can use. We can safely remove it. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index b26ec25405..c76e115ee2 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -2983,9 +2983,7 @@ static int stats_dump_sv_stats(struct stream_interface *si, struct proxy *px, in } else if (sv != ref) { if (sv->state & SRV_MAINTAIN) - chunk_appendf(&trash, - "", - ref->proxy->id, ref->id); + chunk_appendf(&trash, ""); else chunk_appendf(&trash, "via %s/%s",