libctdb: test: add database save and restore
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Jun 2010 05:30:46 +0000 (15:00 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Jun 2010 05:30:46 +0000 (15:00 +0930)
commitd48ec16bd2b4932442d95fc43bea52baa0425501
treea6c3560f6d9faacadb9a717f8eded47db8ee603f
parentbe7c0bffb0d924c3e72753045d5b85ce90407579
libctdb: test: add database save and restore

Once we do operations which alter the TDBs, we need to restore them to
pristine state after a failed child dies.

The method used here is a terrible hack: it should at least do a
tdb_lockall() on the database before blatting it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
libctdb/test/ctdb-test.c
libctdb/test/ctdb-test.h
libctdb/test/databases.c [new file with mode: 0644]
libctdb/test/failtest.c
libctdb/test/tui.c