tdb: use tdb_nest_lock() for active lock.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:44:52 +0000 (14:14 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:44:52 +0000 (14:14 +1030)
commita879e3e2859e17496f29e14b8f393583b2c93f19
tree8de6736d740ae0ae55416dfff3a570a2f8ef415b
parente9989ef0758b3b660abf444d014c5b51a3a7c1b4
tdb: use tdb_nest_lock() for active lock.

Rather than a boutique lock and a separate nest count, use our
newly-generic nested lock tracking for the active lock.

Note that the tdb_have_extra_locks() and tdb_release_extra_locks()
functions have to skip over this lock now it is tracked.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tdb/lock.c
ccan/tdb/open.c
ccan/tdb/tdb_private.h