]> git.ozlabs.org Git - ccan/commitdiff
tdb: use tdb_nest_lock() for open lock.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:36:02 +0000 (14:06 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:36:02 +0000 (14:06 +1030)
This never nests, so it's overkill, but it centralizes the locking into
lock.c and removes the ugly flag in the transaction code to track whether
we have the lock or not.

Note that we have a temporary hack so this places a real lock, despite
the fact that we are in a transaction.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found