tdb2: enforce TDB_CONVERT
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 21:40:13 +0000 (07:10 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 21:40:13 +0000 (07:10 +0930)
commite69c90e5d59027695f158751ed7922d2389d2b5b
tree7a0755d7aa3ccb0f7ebfb05d3c126552e0d55980
parent34c2d1658a89462e9b34210cb19fe9ab33bc2194
tdb2: enforce TDB_CONVERT

If the caller actually specifies TDB_CONVERT, fail if the TDB does not
need conversion.  It's unusual for the user to specify TDB_CONVERT
(it's auto-detected) but better to be strict.

(Imported from CCAN commit 3e3ee8b0c1e77340ab9e8678c2d23646d8cdb627)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb2/open.c
lib/tdb2/test/logging.c
lib/tdb2/test/logging.h
lib/tdb2/test/run-35-convert.c [new file with mode: 0644]