tdb: cleanup: always grab allrecord lock to infinity.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:57:13 +0000 (14:27 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:57:13 +0000 (14:27 +1030)
commitbbf2f9cef4bdbb3841869e9b87f234886985f7e8
tree3905f9f187ebf0c44167868117aa1a8d78c46af8
parent5945c4dc1eed81c189b62612ca3c003a36e0c247
tdb: cleanup: always grab allrecord lock to infinity.

We were previously inconsistent with our "global" lock: the
transaction code grabbed it from FREELIST_TOP to end of file, and the
rest of the code grabbed it from FREELIST_TOP to end of the hash
chains.  Change it to always grab to end of file for simplicity.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tdb/lock.c