From: Cody Cutrer Date: Wed, 28 Aug 2013 01:59:58 +0000 (-0600) Subject: keep track of connection count during online restart X-Git-Tag: pgbouncer_1_6_rc1~20^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6abae49f0667b56a953157dd1d5617b5fefc8ce2;p=pgbouncer keep track of connection count during online restart --- diff --git a/src/objects.c b/src/objects.c index 904d8f8..fe656cb 100644 --- a/src/objects.c +++ b/src/objects.c @@ -1313,6 +1313,8 @@ bool use_server_socket(int fd, PgAddr *addr, if (!res) return false; + db->connection_count++; + server->suspended = 1; server->pool = pool; server->auth_user = user;