marsadm: refuse --ignore-sync on inconsistent targets

This commit is contained in:
Thomas Schoebel-Theuer 2019-02-07 09:10:44 +01:00 committed by Thomas Schoebel-Theuer
parent b465105a18
commit 1e16f3d05f
1 changed files with 1 additions and 0 deletions

View File

@ -1032,6 +1032,7 @@ sub check_sync_finished {
if ($peer eq $host) {
lwarn "Don't try to make inconsistent host '$host' the new primary!\n";
lwarn "Please wait until sync has finished and all logfile have been replayed.\n";
ldie "Refusing to switch inconsistent host '$host' to primary\n";
} else {
lwarn "Changing the primary role during sync is dangerous for data consistency on host '$peer'!\n";
}