]> git.ozlabs.org Git - ccan/commit
tdb: use tdb_nest_lock() for seqnum lock.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:48:32 +0000 (14:18 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:48:32 +0000 (14:18 +1030)
commit564427be4ef1615e0b386007f5adbcbc12887e24
tree63e216346f49d004e380adc3771e05d869ca9479
parenta879e3e2859e17496f29e14b8f393583b2c93f19
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>
ccan/tdb/tdb.c