From: Petr Jelinek Date: Wed, 28 Jan 2015 21:20:38 +0000 (+0100) Subject: Don't allow newserver connections when PAUSE was issued. X-Git-Tag: pgbouncer_1_6~24^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73e7e647639822f83bb175096fec40d719444e47;p=pgbouncer Don't allow newserver connections when PAUSE was issued. --- diff --git a/src/objects.c b/src/objects.c index 4516279..e72cd92 100644 --- a/src/objects.c +++ b/src/objects.c @@ -576,7 +576,7 @@ bool find_server(PgSocket *client) return true; /* try to get idle server, if allowed */ - if (cf_pause_mode == P_PAUSE) { + if (cf_pause_mode == P_PAUSE || pool->db->db_paused) { server = NULL; } else { while (1) {