]> granicus.if.org Git - pgbouncer/commitdiff
Don't allow newserver connections when PAUSE <db> was issued.
authorPetr Jelinek <pjmodos@pjmodos.net>
Wed, 28 Jan 2015 21:20:38 +0000 (22:20 +0100)
committerPetr Jelinek <pjmodos@pjmodos.net>
Wed, 28 Jan 2015 21:20:38 +0000 (22:20 +0100)
src/objects.c

index 45162797bae5c642b3c561a796a2136039ededcb..e72cd920c4b72b11b487834bcd06063ad6c7c693 100644 (file)
@@ -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) {