]> git.ozlabs.org Git - ccan/commit
tdb2: enforce TDB_CONVERT
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:14:12 +0000 (10:44 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:14:12 +0000 (10:44 +0930)
commit3e3ee8b0c1e77340ab9e8678c2d23646d8cdb627
treeb85757c20fc69b34abead8132cc1ba413e555505
parent77658070a3e4f712b94d659b2e399031ce3394c8
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.
ccan/tdb2/open.c
ccan/tdb2/test/logging.c
ccan/tdb2/test/logging.h
ccan/tdb2/test/run-35-convert.c [new file with mode: 0644]