]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: counters: rename last_change counter to last_state_change
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 30 Jun 2025 13:55:56 +0000 (15:55 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 30 Jun 2025 14:26:38 +0000 (16:26 +0200)
commit4fcc9b55723fe927e45ab3727e75f814e1fdb0d2
tree6f16ead609c163bdb520ca55f2725813e3ddefe6
parent5b1480c9d40dc6f9e4ebe8d0531a1709d9f6c244
MINOR: counters: rename last_change counter to last_state_change

Since proxy and server struct already have an internal last_change
variable and we cannot merge it with the shared counter one, let's
rename the last_change counter to be more specific and prevent the
mixup between the two.

last_change counter is renamed to last_state_change, and unlike the
internal last_change, this one is a shared counter so it is expected
to be updated by other processes in our back.

However, when updating last_state_change counter, we use the value
of the server/proxy last_change as reference value.
include/haproxy/counters-t.h
src/backend.c
src/counters.c
src/server.c
src/server_state.c
src/stats-proxy.c