1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb_tests: Reconfigure the cluster when restarting CTDB

The previous test might have made configuration changes, so call
setup_ctdb() to cause the configuration to be rewritten.  This is only
really useful in local daemons tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-02-23 12:21:23 +11:00 committed by Amitay Isaacs
parent bdfc8b7e3e
commit 5615bdf7ff

View File

@ -44,6 +44,10 @@ ctdb_test_exit ()
if $ctdb_test_restart_scheduled || ! cluster_is_healthy ; then
echo "Restarting CTDB (scheduled)..."
ctdb_stop_all || true # Might be restarting some daemons were shutdown
echo "Reconfiguring cluster..."
setup_ctdb
ctdb_start_all
else
# This could be made unconditional but then we might get