From d77186c90444b9c5ca2de201651841f56a7ded02 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Fri, 25 Mar 2011 10:19:28 -0500 Subject: [PATCH] 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). --- repmgr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/repmgr.c b/repmgr.c index 91434f76..b9c4cd7c 100644 --- a/repmgr.c +++ b/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);