]> git.ozlabs.org Git - ccan/commit
tdb: use tdb_nest_lock() for transaction lock.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:04:49 +0000 (13:34 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:04:49 +0000 (13:34 +1030)
commit99e576ac94fd86fcba188fb72ced9e8087ac1680
tree0423c159a2259bdff7cee63f0aa37cb7382fdacc
parentbc1c29d566924ebb7a303dfeb732a5303a59a9b3
tdb: use tdb_nest_lock() for transaction lock.

Rather than a boutique lock and a separate nest count, use our
newly-generic nested lock tracking for the transaction 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/tdb_private.h