1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ctdb-tests: Clean database before the test

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2016-06-17 18:06:07 +10:00 committed by Stefan Metzmacher
parent 16f33c992e
commit 277aad6870
2 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,9 @@ set -e
cluster_is_healthy
try_command_on_node 0 "$CTDB attach transaction_loop.tdb persistent"
try_command_on_node 0 "$CTDB wipedb transaction_loop.tdb"
try_command_on_node 0 "$CTDB listnodes"
num_nodes=$(echo "$out" | wc -l)

View File

@ -49,6 +49,9 @@ set -e
cluster_is_healthy
try_command_on_node 0 "$CTDB attach transaction_loop.tdb persistent"
try_command_on_node 0 "$CTDB wipedb transaction_loop.tdb"
try_command_on_node 0 "$CTDB listnodes"
num_nodes=$(echo "$out" | wc -l)