tdb2: use immobile free buckets, rename tests to show some ordering.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 3 Sep 2010 12:39:40 +0000 (22:09 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 3 Sep 2010 12:39:40 +0000 (22:09 +0930)
commit1a24a8708494668c07e5c02284bfc2ef3b09603b
tree4589ddba958c0a2b7bacbc77e48af795a4f096c6
parent95458bafc9dc99ac8fcd68aa8f48a9fc564e6a31
tdb2: use immobile free buckets, rename tests to show some ordering.

We put the free lists at the beginning of a zone; this means no record
can be larger than a zone, but means they cannot move.  Once we change
hashes to be expanding, they won't move either and the result should be
simpler.
18 files changed:
ccan/tdb2/check.c
ccan/tdb2/free.c
ccan/tdb2/io.c
ccan/tdb2/lock.c
ccan/tdb2/private.h
ccan/tdb2/tdb.c
ccan/tdb2/test/layout.c
ccan/tdb2/test/layout.h
ccan/tdb2/test/run-001-encode.c [new file with mode: 0644]
ccan/tdb2/test/run-001-fls.c [new file with mode: 0644]
ccan/tdb2/test/run-01-new_database.c [new file with mode: 0644]
ccan/tdb2/test/run-02-expand.c [new file with mode: 0644]
ccan/tdb2/test/run-03-coalesce.c [new file with mode: 0644]
ccan/tdb2/test/run-coalesce.c [deleted file]
ccan/tdb2/test/run-encode.c [deleted file]
ccan/tdb2/test/run-expand.c [deleted file]
ccan/tdb2/test/run-fls.c [deleted file]
ccan/tdb2/test/run-new_database.c [deleted file]