]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Remove unused function get_ctdbd_command_line_option()
authorMartin Schwenke <martin@meltin.net>
Thu, 8 Mar 2018 03:33:08 +0000 (14:33 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 19 Mar 2018 01:23:19 +0000 (02:23 +0100)
This was a bad idea.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/scripts/integration.bash

index f159d0ef7be5771398bbde5b5a737e2d435bcec3..0d5a5513e12627b7d8e7f8c3ceed9acc1b9402f7 100644 (file)
@@ -590,27 +590,6 @@ ctdb_restart_when_done ()
     ctdb_test_restart_scheduled=true
 }
 
-get_ctdbd_command_line_option ()
-{
-    local pnn="$1"
-    local option="$2"
-
-    try_command_on_node "$pnn" "$CTDB getpid" || \
-       die "Unable to get PID of ctdbd on node $pnn"
-
-    local pid="${out#*:}"
-    try_command_on_node "$pnn" "ps -p $pid -o args hww" || \
-       die "Unable to get command-line of PID $pid"
-
-    # Strip everything up to and including --option
-    local t="${out#*--${option}}"
-    # Strip leading '=' or space if present
-    t="${t#=}"
-    t="${t# }"
-    # Strip any following options and print
-    echo "${t%% -*}"
-}
-
 ctdb_base_show ()
 {
        echo "${CTDB_BASE:-${CTDB_SCRIPTS_BASE}}"