tdb: use tdb_nest_lock() for active lock.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 00:14:40 +0000 (10:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 00:14:40 +0000 (10:44 +1030)
commit4738d474c412cc59d26fcea64007e99094e8b675
tree55aa258bf0407202be6f8ba0e5d387cb7f9d1a2c
parent9136818df30c7179e1cffa18201cdfc990ebd7b7
tdb: use tdb_nest_lock() for active lock.

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>
lib/tdb/common/lock.c
lib/tdb/common/open.c