]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: replace the ST_* uri_auth flags with STAT_*
authorWilly Tarreau <w@1wt.eu>
Wed, 9 Oct 2019 08:19:16 +0000 (10:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Oct 2019 09:30:07 +0000 (11:30 +0200)
commit708c41602b8e07a67a0490b464ae93169ee0054e
treed51da4efcfe1143eb1d46a534a686e238a0f688b
parentee4f5f83d3159d8dc0f0eef3894b86abb1f10cf2
MINOR: stats: replace the ST_* uri_auth flags with STAT_*

We used to rely on some config flags defined in uri_auth.h set during
parsing, and another set of STAT_* flags defined in stats.h set at run
time, with a somewhat gray area between the two sets. This is confusing
in the stats code as both are called "flags" in various functions and
it's quite hard to know which one describes what.

This patch cleans this up by replacing all ST_* by a newly assigned
value from the STAT_* set so that we can now use unified flags to
describe both the configuration and the current state. There is no
functional change at all.
include/common/uri_auth.h
include/types/stats.h
src/cfgparse-listen.c
src/hlua_fcn.c
src/stats.c
src/uri_auth.c