From 22c621a2d9434c3e99ef09983f7e1d44fadd675e Mon Sep 17 00:00:00 2001 From: Michael Tharp Date: Wed, 23 Mar 2011 09:53:10 -0400 Subject: [PATCH] Don't expire auto DBs that are paused -- that would un-pause them. --- src/janitor.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.40.0