tdb2: allow read-only databases to use locking.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:18 +0000 (23:19 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:18 +0000 (23:19 +1030)
commita39bf3aca1b60365efaf8b1eeb2b2c58b09ffab6
treedbb59f8161e07013817c51c3dcaed656e7b80a91
parent78bb1258f9e67f3052488c6168c40f94a3258cca
tdb2: allow read-only databases to use locking.

You can always specify the TDB_NOLOCK flag along with O_RDONLY for the old
behaviour.
ccan/tdb2/lock.c
ccan/tdb2/tdb.c