tdb: remove num_locks
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Feb 2010 04:31:07 +0000 (15:01 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Feb 2010 04:31:07 +0000 (15:01 +1030)
commit1ab8776247f89b143b6e58f4b038ab4bcea20d3a
treeddd2ace8920416e67b47ef791df8a0b760c96371
parentd48c3e4982a38fb6b568ed3903e55e07a0fe5ca6
tdb: remove num_locks

This was redundant before this patch series: it mirrored num_lockrecs
exactly.  It still does.

Also, skip useless branch when locks == 1: unconditional assignment is
cheaper anyway.

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