]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: uniformize the calling convention of the dump functions
authorWilly Tarreau <w@1wt.eu>
Wed, 9 Oct 2019 09:27:51 +0000 (11:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Oct 2019 09:30:07 +0000 (11:30 +0200)
commit43241ffb6c9422370a1f887547fe9dd495b17dfe
tree87055f3f2a69395429c0ff4bba4bcd51a7f326c3
parentb0ce3ad9ff84d909a82c604a5f4d3d656027bfb7
MINOR: stats: uniformize the calling convention of the dump functions

Some functions used to take flags + appctx with flags==appctx.flags,
others neither, others just one of them. Some functions used to have
the flags before the object being dumped (server) while others had
it after (listener). This patch aims at cleaning this up a little bit
by following this principle:
  - low-level functions which do not need the appctx take flags only
  - medium-level functions which already use the appctx for other
    reasons do not keep the flags
  - top-level functions which already have the stream-int don't need
    the flags nor the appctx.
src/stats.c