From: Michael Tharp Date: Wed, 23 Mar 2011 13:53:10 +0000 (-0400) Subject: Don't expire auto DBs that are paused -- that would un-pause them. X-Git-Tag: pgbouncer_1_5_rc1~38^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22c621a2d9434c3e99ef09983f7e1d44fadd675e;p=pgbouncer Don't expire auto DBs that are paused -- that would un-pause them. --- diff --git a/src/janitor.c b/src/janitor.c index 350d3d4..f02f1bd 100644 --- a/src/janitor.c +++ b/src/janitor.c @@ -531,6 +531,7 @@ static void do_full_maint(int sock, short flags, void *arg) pool_server_maint(pool); pool_client_maint(pool); if (pool->db->db_auto && pool->db->inactive_time == 0 && + pool->db->db_paused == 0 && pool_client_count(pool) == 0 && pool_server_count(pool) == 0 ) { pool->db->inactive_time = get_cached_time(); statlist_remove(&database_list, &pool->db->head);