1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb-tests: Actually restart if cluster doesn't become healthy

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13924

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2019-05-10 19:22:16 +10:00 committed by Amitay Isaacs
parent a60e77157c
commit 97ad353a67

View File

@ -520,6 +520,7 @@ ctdb_init ()
{
local i
for i in $(seq 1 5) ; do
ctdb_stop_all >/dev/null 2>&1 || :
ctdb_start_all || {
echo "Start failed. Trying again in a few seconds..."
sleep_for 5