From 22dd164cbb8aec110e64876bf7b6e3dc6f680fc4 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 26 Feb 2015 15:54:01 +0900 Subject: [PATCH] Clarify intent --- repmgr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index 5685cac8..0d574674 100644 --- a/repmgr.c +++ b/repmgr.c @@ -352,7 +352,10 @@ main(int argc, char **argv) strncpy(runtime_options.dbname, DEFAULT_DBNAME, MAXLEN); } - /* We check that port number is not null */ + /* + * If no primary port (-p, --port) provided, explicitly set the + * default PostgreSQL port. + */ if (!runtime_options.masterport[0]) { strncpy(runtime_options.masterport, DEFAULT_MASTER_PORT, MAXLEN);