tdb2: more fixes and tests for enlarging hash.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 26 Aug 2010 14:38:34 +0000 (00:08 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 26 Aug 2010 14:38:34 +0000 (00:08 +0930)
commit25ed8785693e98492c0c516a8845866ec784f2b9
treeb924a149e9bace0903de457cee785d492a903251
parentdbf1ac48c3a1f5147dfcd457a7847a03de26a6c7
tdb2: more fixes and tests for enlarging hash.
- Neaten I/O function
- Don't use fill in zero_out: it's only for low-level ops.
- Don't mangle arg in tdb_write_convert: it broke write_header.
- More use of tdb_access_read, make it optionally converting.
- Rename unlock_range to unlock_lists.
- Lots of fixes to enlarge_hash now it's being tested.
- More expansion cases tested.
ccan/tdb2/check.c
ccan/tdb2/free.c
ccan/tdb2/io.c
ccan/tdb2/private.h
ccan/tdb2/tdb.c
ccan/tdb2/test/run-enlarge_hash.c [new file with mode: 0644]
ccan/tdb2/test/run-expand.c