From 295a183d0b7b1b814135dbfa0c9d2bf8c35af4cd Mon Sep 17 00:00:00 2001 From: trbs Date: Fri, 11 Feb 2011 21:55:20 +0100 Subject: [PATCH] removing old code which is made invalid after merging the different branches by upstream --- repmgr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repmgr.c b/repmgr.c index e51dff53..2c6ac24d 100644 --- a/repmgr.c +++ b/repmgr.c @@ -254,6 +254,12 @@ main(int argc, char **argv) printf(_("Opening configuration file: %s\n"), runtime_options.config_file); parse_config(runtime_options.config_file, &options); + if (options.node == -1) + { + fprintf(stderr, "Node information is missing. " + "Check the configuration file.\n"); + exit(ERR_BAD_CONFIG); + } keywords[2] = "user"; values[2] = runtime_options.username;