[CLEANUP] Move counters to dedicated structures
Move counters from "struct proxy" and "struct server"
to "struct pxcounters" and "struct svcounters".
This patch should make no functional change.
diff --git a/src/checks.c b/src/checks.c
index 723e693..a21386f 100644
--- a/src/checks.c
+++ b/src/checks.c
@@ -344,7 +344,7 @@
if (s->proxy->srv_bck == 0 && s->proxy->srv_act == 0)
set_backend_down(s->proxy);
- s->down_trans++;
+ s->counters.down_trans++;
if (s->state & SRV_CHECKED)
for(srv = s->tracknext; srv; srv = srv->tracknext)
@@ -942,7 +942,7 @@
/* here, we have seen a failure */
if (s->health > s->rise) {
s->health--; /* still good */
- s->failed_checks++;
+ s->counters.failed_checks++;
}
else
set_server_down(s);
@@ -1033,7 +1033,7 @@
/* failure or timeout detected */
if (s->health > s->rise) {
s->health--; /* still good */
- s->failed_checks++;
+ s->counters.failed_checks++;
}
else
set_server_down(s);