tdb: cleanup: always grab allrecord lock to infinity.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 00:15:14 +0000 (10:45 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 00:15:14 +0000 (10:45 +1030)
commit9341f230f8968b4b18e451d15dda5ccbe7787768
tree5172fcac92e12bbd255fdb556c9091eb85fd90bb
parent1ab8776247f89b143b6e58f4b038ab4bcea20d3a
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 and
so we can merge the two.

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