tdb: make check more robust against recovery failures.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Sep 2010 10:25:26 +0000 (19:55 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Sep 2010 10:25:26 +0000 (19:55 +0930)
commit9e0deff904877068d19b41e965732f145c2554b9
tree243f4f93e0ba60d7998490f7b17a32f78c095c3a
parentfe958c009be224be91e9ed4cdafe5330735d0a38
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.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb/common/check.c