From 6e14f0bc5d8efe9d3bfa7fdb82d9d1bee7d13307 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 26 Dec 2016 10:29:25 +0900 Subject: [PATCH] repmgr: in rsync mode don't delete backup_history file Make behaviour consistent with pg_basebackup. --- repmgr.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/repmgr.c b/repmgr.c index cb2dd2e3..e0b32ed8 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1847,7 +1847,7 @@ do_cluster_cleanup(void) * Unlikely to happen and not a problem per-se, but we'll issue a warning * just in case */ - log_warning(_("Unable to vacuum table %s.repl_monitor"), get_repmgr_schema_quoted(master_conn)); + log_warning(_("unable to vacuum table %s.repl_monitor\n"), get_repmgr_schema_quoted(master_conn)); } @@ -4020,7 +4020,6 @@ stop_backup: */ if (mode == rsync) { - char label_path[MAXPGPATH]; char dirpath[MAXLEN] = ""; if (runtime_options.force) @@ -4077,14 +4076,6 @@ stop_backup: exit(ERR_BAD_RSYNC); } } - - /* delete the backup label file copied from the primary */ - maxlen_snprintf(label_path, "%s/backup_label", local_data_directory); - // XXX! - if (0 && unlink(label_path) < 0 && errno != ENOENT) - { - log_warning(_("unable to delete backup label file %s\n"), label_path); - } }