]> granicus.if.org Git - pgbouncer/commitdiff
dont load users if auth_type=any
authorMarko Kreen <markokr@gmail.com>
Tue, 11 Sep 2007 08:41:36 +0000 (08:41 +0000)
committerMarko Kreen <markokr@gmail.com>
Tue, 11 Sep 2007 08:41:36 +0000 (08:41 +0000)
src/janitor.c

index f85041382f6d8e8b5dcc9ee611ac454b76de77a9..4c81487ddbd0045893ec9242f7bf13cd6c0f349d 100644 (file)
@@ -463,7 +463,8 @@ static void do_full_maint(int sock, short flags, void *arg)
                exit(0);
        }
 
-       loader_users_check();
+       if (cf_auth_type >= AUTH_TRUST)
+               loader_users_check();
 
 skip:
        evtimer_add(&full_maint_ev, &full_maint_period);