From 1e16f3d05f220c4e48be2d977f315eb3ddb99505 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Thu, 7 Feb 2019 09:10:44 +0100 Subject: [PATCH] marsadm: refuse --ignore-sync on inconsistent targets --- userspace/marsadm | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/marsadm b/userspace/marsadm index 4c339974..e132636c 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -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"; }