From: Pavan Deolasee Date: Mon, 14 Sep 2015 07:13:40 +0000 (+0530) Subject: Exit if configuration errors found in pgxc_ctl.conf X-Git-Tag: XL9_5_R1BETA1~168 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=fdcc449e4d19bf0cdea37c0f0bd0a8a7716fe087;p=postgres-xl.git Exit if configuration errors found in pgxc_ctl.conf This is with respect to issue #84 as fixed in X2. While we couldn't reproduce the reported bug, it seems like quite trivial fix. Hence cherry-picked to XL --- diff --git a/contrib/pgxc_ctl/config.c b/contrib/pgxc_ctl/config.c index 81edb6bdcc..694548ddbc 100644 --- a/contrib/pgxc_ctl/config.c +++ b/contrib/pgxc_ctl/config.c @@ -892,7 +892,10 @@ static void verifyResource(void) checkConfiguredAndSize(datanodeSlaveVars, "datanode slave"); } if (anyConfigErrors) + { elog(ERROR, "ERROR: Found fundamental configuration error.\n"); + exit(1); + } /* * --------------- Resource Conflict Check --------------------- */