tdb: use tdb_nest_lock() for seqnum lock.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Apr 2010 04:24:05 +0000 (13:54 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Apr 2010 04:24:05 +0000 (13:54 +0930)
commit2e8512403525c14c9b776ce28891d09c17ada91d
tree24582ca3f1beddea217d85e61a0ce668324e76f0
parent0a44584963232b0b1c62e30c9bede0439e68ef7d
tdb: use tdb_nest_lock() for seqnum lock.

This is pure overhead, but it centralizes the locking.  Realloc (esp. as
most implementations are lazy) is fast compared to the fnctl anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from commit d48c3e4982a38fb6b568ed3903e55e07a0fe5ca6)
lib/tdb/common/tdb.c