From: Martin Schwenke Date: Fri, 28 Sep 2018 10:41:45 +0000 (+1000) Subject: ctdb-tests: Drop unused function maybe_stop_ctdb() X-Git-Tag: tdb-1.3.17~1434 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2e4a5e9fae071b4ea5fad3015c84ba05fe6edcf;p=thirdparty%2Fsamba.git ctdb-tests: Drop unused function maybe_stop_ctdb() There are too many functions to start/stop daemons. Simplify this. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash index 5f31ae9a714..b255f063ba2 100644 --- a/ctdb/tests/scripts/integration.bash +++ b/ctdb/tests/scripts/integration.bash @@ -580,12 +580,6 @@ ctdb_init () return 1 } -# Does nothing on cluster and should be overridden for local daemons -maybe_stop_ctdb () -{ - : -} - ctdb_restart_when_done () { ctdb_test_restart_scheduled=true diff --git a/ctdb/tests/simple/scripts/local_daemons.bash b/ctdb/tests/simple/scripts/local_daemons.bash index 58b1c823a36..34412aa964d 100644 --- a/ctdb/tests/simple/scripts/local_daemons.bash +++ b/ctdb/tests/simple/scripts/local_daemons.bash @@ -205,11 +205,6 @@ restart_ctdb_1 () start_ctdb_1 "$1" } -maybe_stop_ctdb () -{ - ctdb_stop_all -} - # onnode will use CTDB_BASES to help the ctdb tool connection to each # daemon export CTDB_BASES=""