BUG/MINOR: pool/stats: Use ullong to report total pool usage in bytes in stats
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 22 Dec 2022 10:05:48 +0000 (11:05 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 22 Dec 2022 12:46:21 +0000 (13:46 +0100)
commitc960a3b60f5d05b82cdac2a33ab22ca465787e60
treeeae349c879bd6eec4f674cecd2b66cf0b16b206f
parent827a6299e6995c5c3ba620d8b7cbacdaef67f2c4
BUG/MINOR: pool/stats: Use ullong to report total pool usage in bytes in stats

The same change was already performed for the cli. The stats applet and the
prometheus exporter are also concerned. Both use the stats API and rely on
pool functions to get total pool usage in bytes. pool_total_allocated() and
pool_total_used() must return 64 bits unsigned integer to avoid any wrapping
around 4G.

This may be backported to all versions.
doc/internals/api/pools.txt
include/haproxy/pool.h
src/pool.c
src/stats.c