mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
"node rejoin": fail if rejoin target has same timeline and lower LSN
pg_rewind will not resolve this situation.
This commit is contained in:
@@ -3330,19 +3330,12 @@ check_node_can_attach(TimeLineID local_tli, XLogRecPtr local_xlogpos, PGconn *fo
|
||||
{
|
||||
const char *error_msg = _("this node is ahead of the follow target");
|
||||
|
||||
if (is_rejoin == true && runtime_options.force_rewind_used == true)
|
||||
{
|
||||
log_warning("%s", error_msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
log_error("%s", error_msg);
|
||||
success = false;
|
||||
}
|
||||
|
||||
log_error("%s", error_msg);
|
||||
log_detail(_("local node lsn is %X/%X, follow target lsn is %X/%X"),
|
||||
format_lsn(local_xlogpos),
|
||||
format_lsn(follow_target_xlogpos));
|
||||
|
||||
success = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user