From b453c6a5332fe376b77bce94e3a3d7e5461a3bdb Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 12 Feb 2015 14:39:05 +0900 Subject: [PATCH] Fix master port check Check introduced in dc0dfe9b56800b9fb03b338031da2bb91f1058b6 was comparing the provided database name instead of the port. --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index da6aa7c2..8b3c7f66 100644 --- a/repmgr.c +++ b/repmgr.c @@ -349,7 +349,7 @@ main(int argc, char **argv) } /* We check that port number is not null */ - if (!runtime_options.dbname[0]) + if (!runtime_options.masterport[0]) { strncpy(runtime_options.masterport, DEFAULT_MASTER_PORT, MAXLEN); }