Skip to content

Commit

Permalink
metric: Fix connections
Browse files Browse the repository at this point in the history
Signed-off-by: Akshat Sikarwar <asikarwar1@bloomberg.net>
  • Loading branch information
akshatsikarwar committed Oct 17, 2023
1 parent 80c4bf9 commit 8de813d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/sqlinterfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -6838,6 +6838,7 @@ int add_appsock_connection_evbuffer(struct sqlclntstate *clnt)
int warn = bdb_attr_get(thedb->bdb_attr, BDB_ATTR_APPSOCKSLIMIT);
int lim = warn < max ? warn : max;
int current = ATOMIC_ADD32(active_appsock_conns, 1);
time_metric_add(thedb->connections, current);
if (current > lim) {
static time_t last_trace = 0;
time_t now = time(NULL);
Expand Down

0 comments on commit 8de813d

Please sign in to comment.