MINOR: stream: split stats_dump_full_strm_to_buffer() in two
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Sep 2023 06:17:17 +0000 (08:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Sep 2023 07:20:27 +0000 (09:20 +0200)
commit77ecb3146a168f31d9791342c6efdade6ab436f5
tree813f978d8733c27e7f913163347e2c902831320a
parent6c2af048d66f2600286f0aa2abf4d6d8c98b147c
MINOR: stream: split stats_dump_full_strm_to_buffer() in two

The function only works with the CLI's appctx and does most of the
convenient work of dumping a stream into a buffer (well, the trash
buffer for now). Let's split it in two so that most of the work is
done in a generic function and that the CLI-specific function relies
on that one.

The diff looks huge due to the changed indent caused by the extraction
of the switch/case statement, but when looked at using diff -b it's
small.
src/stream.c