]> granicus.if.org Git - pgbouncer/commitdiff
maintenance func needs always evtimer_add
authorMarko Kreen <markokr@gmail.com>
Thu, 12 Apr 2007 10:49:59 +0000 (10:49 +0000)
committerMarko Kreen <markokr@gmail.com>
Thu, 12 Apr 2007 10:49:59 +0000 (10:49 +0000)
src/janitor.c

index 4dda5d020f6c45888670f54ba69b1717dd9418ee..bda506df4def6c2cb72bf861b856427e3d7b74d2 100644 (file)
@@ -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);
 }