From: Marko Kreen Date: Thu, 12 Apr 2007 10:49:59 +0000 (+0000) Subject: maintenance func needs always evtimer_add X-Git-Tag: pgbouncer_1_0_6~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9af7eb74dbebfa366ddebce11916bc00d95f2f63;p=pgbouncer maintenance func needs always evtimer_add --- diff --git a/src/janitor.c b/src/janitor.c index 4dda5d0..bda506d 100644 --- a/src/janitor.c +++ b/src/janitor.c @@ -436,7 +436,7 @@ static void do_full_maint(int sock, short flags, void *arg) /* dont touch anything if takeover is in progress */ if (cf_reboot) - return; + goto skip; statlist_for_each(item, &pool_list) { pool = container_of(item, PgPool, head); @@ -455,6 +455,7 @@ static void do_full_maint(int sock, short flags, void *arg) loader_users_check(); +skip: evtimer_add(&full_maint_ev, &full_maint_period); }