CLEANUP: stats/cli: stop using appctx->st2
authorWilly Tarreau <w@1wt.eu>
Tue, 3 May 2022 16:39:27 +0000 (18:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit41f885241e33d7515608acf848cb463696394f38
tree5e22eeb012dbef89b0882bb44b42a25a4383064d
parent91cefcaba422cabc44d3aa831ee2c8c2ac3c9029
CLEANUP: stats/cli: stop using appctx->st2

Instead, let's have the state as an enum inside the context. It's much
cleaner and safer as we know nobody else touches it.
include/haproxy/stats-t.h
src/http_ana.c
src/stats.c