marsadm: fix wait-cluster race abort

This commit is contained in:
Thomas Schoebel-Theuer 2020-10-19 07:55:31 +02:00
parent ddd025e5ca
commit 90947c1b14

View File

@ -2064,7 +2064,7 @@ sub wait_cluster {
}
last;
}
sleep_timeout();
sleep_timeout(1, 1);
last if $timeout_val <= 0 && !$unknown_count;
}
}
@ -3885,7 +3885,7 @@ sub create_res {
$primary = _get_designated_primary($res, 1);
last if (defined($primary) && $primary);
lprint "Trying to get primary info\n";
wait_cluster($cmd, $res, "*", 0, 8);
update_cluster($cmd, $res, "*");
}
my $max_retry = 5;
for (;;) {