tdb: fix tdb_check() on read-only TDBs to actually work.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Sep 2010 10:28:23 +0000 (19:58 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Oct 2010 04:35:56 +0000 (15:05 +1030)
commit2558eb250011893d09dbeaedaffeefa0e397142f
tree2b2b5734d23422e77947c9e8514e31817f0baf7d
parentb4162a95ff9ae28cda8d9c76c51c9480104517a7
tdb: fix tdb_check() on read-only TDBs to actually work.

Commit bc1c82ea137 "Fix tdb_check() to work with read-only tdb databases."
claimed to do this, but tdb_lockall_read() fails on read-only databases.

Also make sure we can still do tdb_check() inside a transaction (weird,
but we previously allowed it so don't break the API).

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