mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 15:16:29 +00:00
Cleanup of patch that introduces write_primary_conninfo()
This commit is contained in:
4
repmgr.c
4
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);
|
||||
|
||||
Reference in New Issue
Block a user