From: Marko Kreen Date: Tue, 30 Nov 2010 13:01:20 +0000 (+0200) Subject: load_config: always call config_postprocess() X-Git-Tag: pgbouncer_1_4~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1ffb6445c910d5b9e64e4f6430afc0bfef60541;p=pgbouncer load_config: always call config_postprocess() otherwise dbs can be in bad state, when something fails --- diff --git a/src/main.c b/src/main.c index ee9436d..047ebbb 100644 --- a/src/main.c +++ b/src/main.c @@ -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();