]> git.ozlabs.org Git - ccan/commit
tdb2: add TDB_RDONLY flag, allow setting/unsetting it.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 04:28:15 +0000 (13:58 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 04:28:15 +0000 (13:58 +0930)
commitb87e14495d5b07e1b247218a72329f10ecb3da7f
tree33193bd2b306fd3449fcf48e5216252620f1ee3d
parent91436a25574597dbd1fd2de5bcd5826a234100d6
tdb2: add TDB_RDONLY flag, allow setting/unsetting it.

You can only unset it if the TDB was originally opened O_RDWR.

Also, cleaned up error handling in tdb_allrecord_lock() so we only get
one log message on a r/o database.
ccan/tdb2/io.c
ccan/tdb2/lock.c
ccan/tdb2/open.c
ccan/tdb2/private.h
ccan/tdb2/tdb.c
ccan/tdb2/tdb2.h
ccan/tdb2/test/run-92-get-set-readonly.c [new file with mode: 0644]
ccan/tdb2/transaction.c