]> git.ozlabs.org Git - ccan/commit
tdb2: catch errors in tdb1_needs_recovery()
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:07 +0000 (15:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:07 +0000 (15:31 +0930)
commit332d0c29baa6896e67c439aeb47f58a104fbc781
treed8423adf220a558f4c4f5849ba2c848f4587fe65
parentb8e64e9346793164651a36eccb3c205077e5c91b
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().
ccan/tdb2/tdb1_lock.c
ccan/tdb2/tdb1_private.h
ccan/tdb2/tdb1_transaction.c