mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
repmgr: in rsync mode don't delete backup_history file
Make behaviour consistent with pg_basebackup.
This commit is contained in:
11
repmgr.c
11
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
|
* Unlikely to happen and not a problem per-se, but we'll issue a warning
|
||||||
* just in case
|
* 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)
|
if (mode == rsync)
|
||||||
{
|
{
|
||||||
char label_path[MAXPGPATH];
|
|
||||||
char dirpath[MAXLEN] = "";
|
char dirpath[MAXLEN] = "";
|
||||||
|
|
||||||
if (runtime_options.force)
|
if (runtime_options.force)
|
||||||
@@ -4077,14 +4076,6 @@ stop_backup:
|
|||||||
exit(ERR_BAD_RSYNC);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user