]> git.ozlabs.org Git - ccan/commit
tdb: make check more robust against recovery failures.
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 11 Sep 2010 02:23:42 +0000 (11:53 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 11 Sep 2010 02:23:42 +0000 (11:53 +0930)
commit735980539f488d6f6299ec710f4045abbb104d46
tree06ddb71c5bb800446b94ade25e75fe55849a3eb3
parenta153d09b979182e8586d4501ea687bcdd466dabc
tdb: make check more robust against recovery failures.

We can end up with dead areas when we die during transaction commit;
tdb_check() fails on such a (valid) database.

This is particularly noticable now we no longer truncate on recovery;
if the recovery area was at the end of the file we used to remove it
that way.
ccan/tdb/check.c