]> git.ozlabs.org Git - ccan/commit
tdb2: allow multiple chain locks.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 27 Apr 2011 11:18:39 +0000 (20:48 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 27 Apr 2011 11:18:39 +0000 (20:48 +0930)
commitdc9da1e34fe6a9d113fd57e116ebbc6d5bd54819
tree0bdc1b5bf1bc8459bc7ffe01481b785147f66dc7
parent8cca0397ef6f6017b13ce9ab4999bf3d92a2dee5
tdb2: allow multiple chain locks.

It's probably not a good idea, because it's a recipe for deadlocks if
anyone else grabs any *other* two chainlocks, or the allrecord lock,
but SAMBA definitely does it, so allow it as TDB1 does.
ccan/tdb2/lock.c