summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/run-92-get-set-readonly.c
AgeCommit message (Collapse)AuthorFilesLines
2011-09-14tdb2: make tests include a single mega-header to simplify future patchesRusty Russell1-9/+1
This lets us add the new files to a single place. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 476567430be6962625bf399192e20938985232c7)
2011-09-14tdb2: add TDB_RDONLY flag, allow setting/unsetting it.Rusty Russell1-0/+109
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. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit b87e14495d5b07e1b247218a72329f10ecb3da7f)