]> granicus.if.org Git - pgbouncer/commitdiff
Don't expire auto DBs that are paused -- that would un-pause them.
authorMichael Tharp <gxti@partiallystapled.com>
Wed, 23 Mar 2011 13:53:10 +0000 (09:53 -0400)
committerMichael Tharp <gxti@partiallystapled.com>
Wed, 23 Mar 2011 13:53:10 +0000 (09:53 -0400)
src/janitor.c

index 350d3d45118a138a03b58aa065749f2918af4e17..f02f1bda374531da4fe1e33a534034235ed2bfc1 100644 (file)
@@ -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);