diff options
author | Martin Schwenke <martin@meltin.net> | 2016-08-23 11:07:25 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2016-08-23 17:22:17 +0200 |
commit | bcb33c46dfe3d6c06eb6b3b5e7f8625538772d5e (patch) | |
tree | 3f0f1c6858f74d217a9a066dfedbf8de4e03c907 /ctdb/tests/simple | |
parent | 3c87868d208de8928e25db1dd34266830f017a07 (diff) | |
download | samba-bcb33c46dfe3d6c06eb6b3b5e7f8625538772d5e.tar.gz |
ctdb-tests: Remove function daemons_start_1()
This function doesn't do anything significant, so just unroll the body
into the loop in daemons_start().
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>
Diffstat (limited to 'ctdb/tests/simple')
-rw-r--r-- | ctdb/tests/simple/scripts/local_daemons.bash | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/ctdb/tests/simple/scripts/local_daemons.bash b/ctdb/tests/simple/scripts/local_daemons.bash index 24c0ee154cc..a53a2f24cbb 100644 --- a/ctdb/tests/simple/scripts/local_daemons.bash +++ b/ctdb/tests/simple/scripts/local_daemons.bash @@ -129,26 +129,20 @@ EOF done } -daemons_start_1 () -{ - local pnn="$1" - - local pidfile="${TEST_VAR_DIR}/ctdbd.${pnn}.pid" - local conf="${TEST_VAR_DIR}/ctdbd.${pnn}.conf" - - # We'll use "pkill -f" to kill the daemons with - # "ctdbd --sloppy-start --nopublicipcheck" as context. - CTDBD="${VALGRIND} ctdbd --sloppy-start --nopublicipcheck" \ - CTDBD_CONF="$conf" \ - ctdbd_wrapper "$pidfile" start -} - daemons_start () { echo "Starting $TEST_LOCAL_DAEMONS ctdb daemons..." - for i in $(seq 0 $(($TEST_LOCAL_DAEMONS - 1))) ; do - daemons_start_1 $i + local pnn + for pnn in $(seq 0 $(($TEST_LOCAL_DAEMONS - 1))) ; do + local pidfile="${TEST_VAR_DIR}/ctdbd.${pnn}.pid" + local conf="${TEST_VAR_DIR}/ctdbd.${pnn}.conf" + + # We'll use "pkill -f" to kill the daemons with + # "ctdbd --sloppy-start --nopublicipcheck" as context. + CTDBD="${VALGRIND} ctdbd --sloppy-start --nopublicipcheck" \ + CTDBD_CONF="$conf" \ + ctdbd_wrapper "$pidfile" start done } |