]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats: Add a break after filling ST_F_MODE field for servers
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Jan 2021 12:32:25 +0000 (13:32 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Jan 2021 12:32:26 +0000 (13:32 +0100)
The previous patch was pushed too quickly (399bf72f6 "BUG/MINOR: stats:
Remove a break preventing ST_F_QCUR to be set for servers"). It was not an
extra break but a misplaced break statement. Thus, now a break statement
must be added after filling the ST_F_MODE field in stats_fill_sv_stats().

No backport needed except if the above commit is backported.

src/stats.c

index 1d5aa841f69f30affcd577acfc4df8f108b5477e..be8bc64131a51656e036c554a99b3c6ef9816f0f 100644 (file)
@@ -2069,6 +2069,7 @@ int stats_fill_sv_stats(struct proxy *px, struct server *sv, int flags,
                                break;
                        case ST_F_MODE:
                                metric = mkf_str(FO_CONFIG|FS_SERVICE, proxy_mode_str(px->mode));
+                               break;
                        case ST_F_QCUR:
                                metric = mkf_u32(0, sv->nbpend);
                                break;