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:
parent
bdfc8b7e3e
commit
5615bdf7ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user