]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: introduce stats field ctx
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 15 Dec 2022 13:01:04 +0000 (14:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Dec 2022 15:53:49 +0000 (16:53 +0100)
commit559418419048426faaa216f8bb9ad254f0052d4f
tree0ffa2a742ddb37bfe7aa04828bedda7e79680a47
parente76a027b0b49ae47506e31d5dd4e7909d10c557e
MINOR: stats: introduce stats field ctx

Add a new value in stats ctx: field.
Implement field support in line dumping parent functions
stats_print_proxy_field_json() and stats_dump_proxy_to_buffer().

This will allow child dumping functions to support partial line dumping
when needed. ie: when dumping buffer is exhausted: do a partial send and
wait for a new buffer to finish the dump. Thanks to field ctx, the function
can start dumping where it left off on previous (unterminated) invokation.
include/haproxy/stats-t.h
src/stats.c