diff options
author | Martin Schwenke <martin@meltin.net> | 2020-08-07 12:19:09 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2020-08-17 04:51:32 +0000 |
commit | 971c20e9dc264c076b3fdfbeda71e4430919e7e4 (patch) | |
tree | 68e34ac05c3ffb29895df0bfc971111303ba967d /ctdb/tests/INTEGRATION/simple | |
parent | e89ec78e9a262a6e7bb9082323083eb5f1609655 (diff) | |
download | samba-971c20e9dc264c076b3fdfbeda71e4430919e7e4.tar.gz |
ctdb-tools: Drop "ctdb isnotrecmaster" command
This isn't used anywhere and can easily be checked via "ctdb pnn" and
"ctdb recmaster" commands.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests/INTEGRATION/simple')
-rwxr-xr-x | ctdb/tests/INTEGRATION/simple/cluster.001.isnotrecmaster.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ctdb/tests/INTEGRATION/simple/cluster.001.isnotrecmaster.sh b/ctdb/tests/INTEGRATION/simple/cluster.001.isnotrecmaster.sh deleted file mode 100755 index 7d8620bc2f5..00000000000 --- a/ctdb/tests/INTEGRATION/simple/cluster.001.isnotrecmaster.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Verify the operation of 'ctdb isnotrecmaster' - -. "${TEST_SCRIPTS_DIR}/integration.bash" - -set -e - -ctdb_test_init - -cmd="$CTDB isnotrecmaster || true" -try_command_on_node -v all "$cmd" - -num_all_lines=$(wc -l <"$outfile") -num_rm_lines=$(grep -Fc 'this node is the recmaster' "$outfile") || true -num_not_rm_lines=$(grep -Fc 'this node is not the recmaster' "$outfile") || true - -if [ $num_rm_lines -eq 1 ] ; then - echo "OK, there is only 1 recmaster" -else - die "BAD, there are ${num_rm_lines} nodes claiming to be the recmaster" -fi - -if [ $(($num_all_lines - $num_not_rm_lines)) -eq 1 ] ; then - echo "OK, all the other nodes claim not to be the recmaster" -else - die "BAD, there are only ${num_not_rm_lines} notrecmaster nodes" -fi |