From: Christopher Faulet Date: Wed, 27 Jan 2021 11:48:32 +0000 (+0100) Subject: BUG/MINOR: stats: Remove a break preventing ST_F_QCUR to be set for servers X-Git-Tag: v2.4-dev7~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=399bf72f66580ccc50cee51331c7af92d2833c6d;p=thirdparty%2Fhaproxy.git BUG/MINOR: stats: Remove a break preventing ST_F_QCUR to be set for servers There is an extra break statement wrongly placed in stats_fill_sv_stats() function, just before filling the ST_F_QCUR field. It prevents this field to be set to the right value for servers. No backport needed except if commit 3a9a4992 ("MEDIUM: stats: allow to select one field in `stats_fill_sv_stats`") is backported. --- diff --git a/src/stats.c b/src/stats.c index c748c7d341..1d5aa841f6 100644 --- a/src/stats.c +++ b/src/stats.c @@ -2070,7 +2070,6 @@ int stats_fill_sv_stats(struct proxy *px, struct server *sv, int flags, case ST_F_MODE: metric = mkf_str(FO_CONFIG|FS_SERVICE, proxy_mode_str(px->mode)); case ST_F_QCUR: - break; metric = mkf_u32(0, sv->nbpend); break; case ST_F_QMAX: