mirror of
https://github.com/schoebel/mars
synced 2025-04-10 19:41:42 +00:00
marsadm: hint admins on --ignore-sync
This commit is contained in:
parent
23748272ca
commit
ae2668b265
@ -2300,7 +2300,10 @@ sub check_sync_finished {
|
|||||||
} else {
|
} else {
|
||||||
lwarn "Changing the primary role during sync is dangerous for data consistency on host '$peer'!\n";
|
lwarn "Changing the primary role during sync is dangerous for data consistency on host '$peer'!\n";
|
||||||
}
|
}
|
||||||
ldie "First wait for sync finished before trying to switch primary!\n" unless (defined($do_force) && $do_force);
|
unless ($do_force) {
|
||||||
|
lprint "HINT: consider the option --ignore-sync if you are sure that you want to restart the sync\n";
|
||||||
|
ldie "First wait for sync finished before primary handover, or use --ignore-sync\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
lprint "OK, it seems that sync has finished on host '$peer'.\n";
|
lprint "OK, it seems that sync has finished on host '$peer'.\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user