mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 23:26:30 +00:00
Ignore error 24 from rsync (that could happen if we use a lot of
temp tables for example). It only ignores that error if we are copying a directory (which means we are in pg_start_backup() and then ignore changes that happen due to concurrent access is fine).
This commit is contained in:
committed by
Cédric Villemain
parent
4c792c8013
commit
d77186c904
10
repmgr.c
10
repmgr.c
@@ -1473,6 +1473,16 @@ copy_remote_files(char *host, char *remote_user, char *remote_path,
|
||||
|
||||
r = system(script);
|
||||
|
||||
/*
|
||||
* If we are transfering a directory (ie: data directory, tablespace directories)
|
||||
* then we can ignore some rsync errors, so if we get some of those errors we
|
||||
* treat them as 0
|
||||
* List of ignorable rsync errors:
|
||||
* 24 Partial transfer due to vanished source files
|
||||
*/
|
||||
if (is_directory && (r == 24))
|
||||
r = 0;
|
||||
|
||||
if (r != 0)
|
||||
log_err(_("Can't rsync from remote file or directory (%s:%s)\n"),
|
||||
host_string, remote_path);
|
||||
|
||||
Reference in New Issue
Block a user