]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: stats: rename the stats state values an mark the old ones deprecated
authorWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:07:53 +0000 (18:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:33:49 +0000 (18:33 +0200)
commit6ef1648dc2f16b293f2e80f4715e926edf649c02
treea98b39d607f0a4f003ef7f0855b864465eb882f8
parent1c0715b12a8bef3cc0b7666a0a43674afef0f1f1
CLEANUP: stats: rename the stats state values an mark the old ones deprecated

The STAT_ST_* values have been abused by virtually every applet and CLI
keyword handler, and this must not continue as it's a source of bugs and
of overly complicated code.

This patch renames the states to STAT_STATE_*, and keeps the previous
enum while marking each entry as deprecated. This should be sufficient to
catch out-of-tree code that might rely on them and to let them know what
to do with that.
include/haproxy/stats-t.h
src/http_ana.c
src/stats.c