]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats: Remove a break preventing ST_F_QCUR to be set for servers
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Jan 2021 11:48:32 +0000 (12:48 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Jan 2021 11:48:38 +0000 (12:48 +0100)
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.

src/stats.c

index c748c7d3411d7d3c8b8d78e544dcc75c2ca718b2..1d5aa841f69f30affcd577acfc4df8f108b5477e 100644 (file)
@@ -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: