]> git.ozlabs.org Git - ccan-lca-2011.git/commitdiff
tdb2: fix tdb_chainlock
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 07:24:15 +0000 (17:54 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 07:24:15 +0000 (17:54 +1030)
We can't enlarge the lock without risking deadlock, so tdb_chainlock() can't
simply grab a one-byte lock; it needs to grab the lock we'd need to protect
the hash.

In theory, tdb_chainlock_read() could use a one-byte lock though.


No differences found