]> git.kaiwu.me - haproxy.git/commit
MEDIUM: counters: change the fill_stats() API to pass the module and extra_counters
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Feb 2026 10:44:48 +0000 (11:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Feb 2026 07:24:03 +0000 (08:24 +0100)
commit95a9f472d2cb9c8f525ca8275e149393e11eea48
treea41a8b34e4831b42d224d4f8bb21aec923fef816
parent56fc12d6fab5957088a3814d1a21d3f4dd8280cc
MEDIUM: counters: change the fill_stats() API to pass the module and extra_counters

We'll soon need to iterate over thread groups in the fill_stats() functions,
so let's first pass the extra_counters and stats_module pointers to the
fill_stats functions. They now call EXTRA_COUNTERS_GET() themselves with
these elements in order to retrieve the required pointer. Nothing else
changed, and it's getting even a bit more transparent for callers.

This doesn't change anything visible however.
addons/promex/service-prometheus.c
include/haproxy/stats-t.h
src/h3_stats.c
src/mux_h1.c
src/mux_h2.c
src/quic_stats.c
src/resolvers.c
src/ssl_sock.c
src/stats-proxy.c