mirror of
https://github.com/schoebel/mars
synced 2024-12-27 00:52:21 +00:00
main: fix primary --force on incomplete logfiles
This commit is contained in:
parent
d9444a0c51
commit
af111b7dd6
@ -2824,6 +2824,15 @@ int _get_tolerance(struct mars_rotate *rot)
|
||||
{
|
||||
if (rot->is_log_damaged)
|
||||
return REPLAY_TOLERANCE;
|
||||
|
||||
/* Do not insist on completeness of logfiles when pause-fetch
|
||||
* is given, important for primary --force when the old primary
|
||||
* is unreachable (or even dead forever).
|
||||
*/
|
||||
if (rot->todo_primary &&
|
||||
!_check_allow(rot->global, rot->parent_path, "connect"))
|
||||
return REPLAY_TOLERANCE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user