mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
The commit fixes problems not taking in account while working on the
issue with rsync returning non-zero status on vanishing files on commit
83e5f98171.
Alvaro Herrera gave me some tips which pointed me in the correct
direction.
This was reported by sungjae lee <sj860908@gmail.com>
This commit is contained in:
4
repmgr.c
4
repmgr.c
@@ -1665,7 +1665,7 @@ do_standby_clone(void)
|
|||||||
It's quite common for this to happen on the data directory, particularly
|
It's quite common for this to happen on the data directory, particularly
|
||||||
with long running rsync on a busy server.
|
with long running rsync on a busy server.
|
||||||
*/
|
*/
|
||||||
if (r != 0 && r != 24)
|
if (!WIFEXITED(r) && WEXITSTATUS(r) != 24)
|
||||||
{
|
{
|
||||||
log_warning(_("standby clone: failed copying master data directory '%s'\n"),
|
log_warning(_("standby clone: failed copying master data directory '%s'\n"),
|
||||||
master_data_directory);
|
master_data_directory);
|
||||||
@@ -1751,7 +1751,7 @@ do_standby_clone(void)
|
|||||||
It's quite common for this to happen on the data directory, particularly
|
It's quite common for this to happen on the data directory, particularly
|
||||||
with long running rsync on a busy server.
|
with long running rsync on a busy server.
|
||||||
*/
|
*/
|
||||||
if (r != 0 && r != 24)
|
if (!WIFEXITED(r) && WEXITSTATUS(r) != 24)
|
||||||
{
|
{
|
||||||
log_warning(_("standby clone: failed copying tablespace directory '%s'\n"),
|
log_warning(_("standby clone: failed copying tablespace directory '%s'\n"),
|
||||||
tblspc_dir_src.data);
|
tblspc_dir_src.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user