tdb2: catch errors in tdb1_needs_recovery()
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:37:13 +0000 (08:07 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:37:13 +0000 (08:07 +0930)
commit0ea5db4e0d81907ccdc25c79aa3b6f8074775426
tree583263a28c417b48e81834dab6ab89b745a0f280
parentb50b48f575d8ad2a709c89dab0a64e19e45d7b08
tdb2: catch errors in tdb1_needs_recovery()

The tdb1 backend simply returns "true" if there's an error determining
if a tdb needs recovery.  But this leads failtest down a rabbit hole;
it's better to return the error at this case (and makes for better for
diagnostics, since they will come from the first fault, not later in
tdb1_transaction_recover().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 332d0c29baa6896e67c439aeb47f58a104fbc781)
lib/tdb2/tdb1_lock.c
lib/tdb2/tdb1_private.h
lib/tdb2/tdb1_transaction.c