]> granicus.if.org Git - pgbouncer/commitdiff
load_config: always call config_postprocess()
authorMarko Kreen <markokr@gmail.com>
Tue, 30 Nov 2010 13:01:20 +0000 (15:01 +0200)
committerMarko Kreen <markokr@gmail.com>
Tue, 30 Nov 2010 13:01:20 +0000 (15:01 +0200)
otherwise dbs can be in bad state, when something fails

src/main.c

index ee9436dd6be2c25256874c5d07484202ff93ed44..047ebbbc135358b01a3ae4a956749dd38ba3a0f1 100644 (file)
@@ -291,14 +291,15 @@ void load_config(void)
                /* load users if needed */
                if (cf_auth_type >= AUTH_TRUST)
                        load_auth_file(cf_auth_file);
-
-               /* reset pool_size, kill dbs */
-               config_postprocess();
        } else {
+               log_warning("Config file loading failed");
                /* if ini file missing, dont kill anybody */
                set_dbs_dead(false);
        }
 
+       /* reset pool_size, kill dbs */
+       config_postprocess()
+
        /* reopen logfile */
        if (main_config.loaded)
                reset_logging();