From 3a430397dc9893f7d7f374f4d4a1687926b062db Mon Sep 17 00:00:00 2001 From: Dan Farina Date: Thu, 23 Dec 2010 00:53:01 -0800 Subject: [PATCH] Avoid overwriting the new password-in-recovery.conf formatting Previously: did that work, then threw it away/overwrote it. Signed-off-by: Dan Farina --- repmgr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/repmgr.c b/repmgr.c index b111cefb..a89b49ea 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1378,8 +1378,6 @@ create_recovery_file(const char *data_dir, char *master_conninfo) maxlen_snprintf(line, "primary_conninfo = '%s'\n", master_conninfo); } - maxlen_snprintf(line, "primary_conninfo = 'host=%s port=%s'\n", host, - ((masterport==NULL) ? "5432" : masterport)); if (fputs(line, recovery_file) == EOF) { fprintf(stderr, "recovery file could not be written, it could be necesary to create it manually\n");