From 257dbc4f42d39a17b524fe932928b2921fcb6008 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Fri, 27 Apr 2012 01:23:37 -0500 Subject: [PATCH] Cleanup of patch that introduces write_primary_conninfo() --- repmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgr.c b/repmgr.c index 2e4aa500..f9522fa6 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1203,7 +1203,7 @@ stop_backup: last_wal_segment = PQgetvalue(res, 0, 0); /* don't show this message if rsync failed */ - if (r == 0) + if (r == 0 && runtime_options.verbose) log_info(_("%s requires primary to keep WAL files %s until at least %s\n"), progname, first_wal_segment, last_wal_segment); @@ -1798,7 +1798,7 @@ write_primary_conninfo(char* line) maxlen_snprintf(user_buf, " user=%s", runtime_options.username); } - maxlen_snprintf(conn_buf, "port=%s%s%s%s%s", + maxlen_snprintf(conn_buf, "port=%s%s%s%s", (runtime_options.masterport[0]) ? runtime_options.masterport : "5432", host_buf, user_buf, password_buf); maxlen_snprintf(line, "primary_conninfo = '%s'", conn_buf);