summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2015-09-14 07:13:40 +0000
committerPavan Deolasee2015-09-15 09:45:40 +0000
commitfdcc449e4d19bf0cdea37c0f0bd0a8a7716fe087 (patch)
tree846705455a402be208408b39ce6f3369ff771f0c
parent60fdf706a65384adfb3de2e185bd54f65bba6609 (diff)
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
-rw-r--r--contrib/pgxc_ctl/config.c3
1 files changed, 3 insertions, 0 deletions
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 ---------------------
*/