]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stats: Continue to fill frontend stats on unimplemented metric
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Jan 2021 16:33:22 +0000 (17:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Jan 2021 16:42:32 +0000 (17:42 +0100)
commitd808f1759dcb9fcf28b68f835b56e9c0caddddcc
treeff3fd7d856d46562b2a577174e9b0de3c3365794
parent24c41d55bd878a5abc28978eec5f75a8e44fd597
BUG/MINOR: stats: Continue to fill frontend stats on unimplemented metric

A regression was introduced by the commit 0ef54397b ("MEDIUM: stats: allow
to select one field in `stats_fill_fe_stats`"). stats_fill_fe_stats()
function fails on unimplemented metrics for frontends. However, not all
stats metrics are used by frontends. For instance ST_F_QCUR. As a
consequence, the frontends stats are always skipped.

To fix the bug, we just skip unimplemented metric for frontends. An error is
triggered only if a specific field is given and is unimplemented.

No backport is needed except if the above commit is backported.
src/stats.c