1
0
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:
Martin Schwenke 2013-11-28 17:27:06 +11:00 committed by Michael Adam
parent 85a711f5a8
commit 6b15fe247c
2 changed files with 3 additions and 4 deletions

View File

@ -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 ()

View File

@ -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"