]> git.ozlabs.org Git - ccan/commitdiff
tdb: cleanup: tdb_have_extra_locks() helper
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:04:10 +0000 (13:34 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:04:10 +0000 (13:34 +1030)
In many places we check whether locks are held: add a helper to do this.

The _tdb_lockall() case has already checked for the allrecord lock, so
the extra work done by tdb_have_extra_locks() is merely redundant.

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

No differences found