]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: apply stats-file on process startup
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 24 Apr 2024 09:09:06 +0000 (11:09 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 26 Apr 2024 09:29:25 +0000 (11:29 +0200)
commit34ae7755b36c3d23ed529d2fea2da2084fe2d41e
tree07aa12e0aa8b3a62659e13d8d59856754bf96418
parent83731c8048eb51bf4c6393ceba9885d84f8c8883
MINOR: stats: apply stats-file on process startup

This commit is the first one of a serie to implement preloading of
haproxy counters via stats-file parsing.

This patch defines a basic apply_stats_file() function. It implements
reading line by line of a stats-file without any parsing for the moment.
It is called automatically on process startup via init().
include/haproxy/global-t.h
include/haproxy/stats-file.h
include/haproxy/stats-t.h
include/haproxy/stats.h
src/haproxy.c
src/stats-file.c
src/stats.c