Exit if configuration errors found in pgxc_ctl.conf
authorPavan Deolasee <[email protected]>
Mon, 14 Sep 2015 07:13:40 +0000 (12:43 +0530)
committerPavan Deolasee <[email protected]>
Tue, 15 Sep 2015 09:45:40 +0000 (15:15 +0530)
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

contrib/pgxc_ctl/config.c

index 81edb6bdcc1163f5132731e31f4af68140dc431e..694548ddbc9bd4c4441cb23ae5609547bf22f554 100644 (file)
@@ -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 ---------------------
         */