1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb-tests: Drop function _ctdb_hack_options()

It does something special if the --start-as-stopped option is given
and is not used in any tests.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12170

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2016-08-23 10:20:51 +10:00 committed by Amitay Isaacs
parent 77fae5bcd2
commit fd443b8cce

View File

@ -524,20 +524,8 @@ wait_until_node_has_some_ips ()
#######################################
_ctdb_hack_options ()
{
local ctdb_options="$*"
case "$ctdb_options" in
*--start-as-stopped*)
export CTDB_START_AS_STOPPED="yes"
esac
}
restart_ctdb_1 ()
{
_ctdb_hack_options "$@"
if [ -e /etc/redhat-release ] ; then
service ctdb restart
else