]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] switch all stat counters to 64-bit
authorWilly Tarreau <w@1wt.eu>
Sat, 11 Apr 2009 18:44:08 +0000 (20:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 Apr 2009 18:44:08 +0000 (20:44 +0200)
commit3b88d441e908ee3461bb46d00cbb6336dc98b3ee
tree462e801c42afc8bdb4dd68b1839cc298ff21ea13
parentef7341dc3ddc91275fe530e6b3d3e8ef337294fc
[MINOR] switch all stat counters to 64-bit

The byte counters have long been 64-bit to avoid overflows. But with
several sites nowadays, we see session counters wrap around every 10-days
or so. So it was the moment to switch counters to 64-bit, including
error and warning counters which can theorically rise as fast as session
counters even if in practice there is very low risk.

The performance impact should not be noticeable since those counters are
only updated once per session. The stats output have been carefully checked
for proper types on both 32- and 64-bit platforms.
include/types/proxy.h
include/types/server.h
src/dumpstats.c
src/haproxy.c