]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: counters/server: fix server and proxy last_change mixup
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 30 Jun 2025 09:20:13 +0000 (11:20 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 30 Jun 2025 14:26:19 +0000 (16:26 +0200)
commit9d3c73c9f2c7650de356c4b75cb114a6a60282c4
tree136b7e33c2d797e876aaad9b8bef3ce1f51ff742
parent837762e2ee61ff3bea419116896e74f05531b5a3
BUG/MEDIUM: counters/server: fix server and proxy last_change mixup

16eb0fa ("MAJOR: counters: dispatch counters over thread groups")
introduced some bugs: as a result of improper copy paste during
COUNTERS_SHARED_LAST() macro introduction, some functions such as
srv_downtime() which used to make use of the server last_change variable
now use the proxy one, which doesn't make sense and will likely cause
unexpected logical errors/bugs.

Let's fix them all at once by properly pointing to the server last_change
variable when relevant.

No backport needed.
src/server.c