1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/ctdb/tests/eventscripts/01.reclock.monitor.004.sh
Martin Schwenke 0825eff3e3 ctdb-scripts: Drop use of ctdb_check_counter from reclock event script
This makes the logic more obvious.

Fix the (probably) accidental fall-through to the regular monitor
failure.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-07-21 02:24:25 +02:00

19 lines
262 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "set, doesn't exist, 4 times"
setup_reclock
rm -f "$CTDB_RECOVERY_LOCK"
ok_null
simple_test
simple_test
simple_test
required_result 1 <<EOF
ERROR: 4 consecutive failures checking reclock
EOF
simple_test