mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb/tests/simple: Local daemons version of setup_ctdb() overrides
setup_ctdb() doesn't need to do anything on a cluster. To avoid a conditional, just override it for local daemons. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
85a711f5a8
commit
6b15fe247c
@ -449,11 +449,10 @@ _restart_ctdb ()
|
||||
fi
|
||||
}
|
||||
|
||||
# Nothing needed for a cluster. Override for local daemons.
|
||||
setup_ctdb ()
|
||||
{
|
||||
if [ -n "$CTDB_NODES_SOCKETS" ] ; then
|
||||
daemons_setup
|
||||
fi
|
||||
:
|
||||
}
|
||||
|
||||
restart_ctdb ()
|
||||
|
@ -39,7 +39,7 @@ daemons_stop ()
|
||||
rm -rf "${TEST_VAR_DIR}/test.db"
|
||||
}
|
||||
|
||||
daemons_setup ()
|
||||
setup_ctdb ()
|
||||
{
|
||||
mkdir -p "${TEST_VAR_DIR}/test.db/persistent"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user