mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-21 06:43:30 +02:00
[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.
This commit is contained in:
committed by
Willy Tarreau
parent
8d06b8b8db
commit
052d4fd07d
@@ -255,7 +255,7 @@ int event_accept(int fd) {
|
||||
s->data_source = DATA_SRC_NONE;
|
||||
|
||||
s->uniq_id = totalconn;
|
||||
proxy_inc_fe_ctr(p); /* note: cum_beconn will be increased once assigned */
|
||||
proxy_inc_fe_ctr(l, p); /* note: cum_beconn will be increased once assigned */
|
||||
|
||||
txn = &s->txn;
|
||||
txn->flags = 0;
|
||||
@@ -488,8 +488,8 @@ int event_accept(int fd) {
|
||||
}
|
||||
|
||||
p->feconn++; /* beconn will be increased later */
|
||||
if (p->feconn > p->feconn_max)
|
||||
p->feconn_max = p->feconn;
|
||||
if (p->feconn > p->counters.feconn_max)
|
||||
p->counters.feconn_max = p->feconn;
|
||||
|
||||
actconn++;
|
||||
totalconn++;
|
||||
|
||||
Reference in New Issue
Block a user