marsadm: remove hindering split-cluster safeguard

On asymmetric networks, this hinders fixing the asymmetry.
This commit is contained in:
Thomas Schoebel-Theuer 2018-06-25 15:28:49 +02:00
parent 86fef78e63
commit 66c96ce2cc

View File

@ -2519,11 +2519,9 @@ sub split_cluster {
my $ips_backup = "$backup_dir/ips-backup";
system("mkdir -p $ips_backup") and ldie "OOps";
system("cp -a $mars/ips/* $ips_backup/");
my $safeguard_cmd = "(( \$(find $mars/ -name 'delete-*' | wc -l) <= \$(find $mars/ -name 'deleted-*' | wc -l) ))";
foreach my $peer (glob("$ips_backup/ip-*")) {
$peer =~ s:^$ips_backup/ip-::;
ssh_cmd($peer, $ssh_probe);
ssh_cmd($peer, $safeguard_cmd);
}
lprint "Creating IP backups...\n";
# create ips backup