mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Fix rsync return code test
This commit is contained in:
3
repmgr.c
3
repmgr.c
@@ -1485,7 +1485,7 @@ copy_remote_files(char *host, char *remote_user, char *remote_path,
|
|||||||
* List of ignorable rsync errors:
|
* List of ignorable rsync errors:
|
||||||
* 24 Partial transfer due to vanished source files
|
* 24 Partial transfer due to vanished source files
|
||||||
*/
|
*/
|
||||||
if ((r == 24) && is_directory)
|
if ((WEXITSTATUS(r) == 24) && is_directory)
|
||||||
{
|
{
|
||||||
if (!runtime_options.ignore_rsync_warn)
|
if (!runtime_options.ignore_rsync_warn)
|
||||||
log_warning( _("\nrsync completed with return code 24 "
|
log_warning( _("\nrsync completed with return code 24 "
|
||||||
@@ -1498,7 +1498,6 @@ copy_remote_files(char *host, char *remote_user, char *remote_path,
|
|||||||
else
|
else
|
||||||
r = 0;
|
r = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r != 0)
|
if (r != 0)
|
||||||
log_err(_("Can't rsync from remote file or directory (%s:%s)\n"),
|
log_err(_("Can't rsync from remote file or directory (%s:%s)\n"),
|
||||||
host_string, remote_path);
|
host_string, remote_path);
|
||||||
|
|||||||
Reference in New Issue
Block a user