]> git.ozlabs.org Git - ccan/commit
tdb2: allow nesting of read locks on top of write locks.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Nov 2010 01:37:29 +0000 (12:07 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Nov 2010 01:37:29 +0000 (12:07 +1030)
commit49c1b2e371c2fa6c3e74cee8d8222d161454ffe4
tree4ab3d51c77f62a89512c422b5622e081b25f1443
parentdde924399b8e16de3e2426af8a44b4fde95c5f48
tdb2: allow nesting of read locks on top of write locks.

If we have a write lock and ask for a read lock, that's OK, but not the
other way around.  tdb_nest_lock() allowed both, tdb_allrecord_lock() allowed
neither.
ccan/tdb2/lock.c