]> git.ozlabs.org Git - ccan/commit - ccan/tdb2/free.c
tdb2: handle chains of free tables
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Nov 2010 09:56:52 +0000 (20:26 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Nov 2010 09:56:52 +0000 (20:26 +1030)
commitef9dec6018e1f0c6e546245a1478be523592d02d
tree5254db5e337b639d67cde011690f6761132e1318
parentd70577b6aff24ccf6815896509dabb8c9ac07904
tdb2: handle chains of free tables

This adds chains of free tables: we choose one at random at the start and
we iterate through them when they are exhausted.

Currently there is no code to actually add a new free table, but we test
that we can handle it if we add one in future.
ccan/tdb2/check.c
ccan/tdb2/free.c
ccan/tdb2/private.h
ccan/tdb2/tdb.c
ccan/tdb2/test/layout.c
ccan/tdb2/test/layout.h
ccan/tdb2/test/run-03-coalesce.c
ccan/tdb2/test/run-50-multiple-freelists.c [new file with mode: 0644]