Skip to content

Commit

Permalink
Merge pull request pgbouncer#35 from PJMODOS/master
Browse files Browse the repository at this point in the history
Don't allow newserver connections when PAUSE <db> was issued.
  • Loading branch information
markokr committed Jan 29, 2015
2 parents 554742d + 73e7e64 commit 8539ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objects.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 8539ce7

Please sign in to comment.