tdb2: tdb_repack
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:07 +0000 (15:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:07 +0000 (15:31 +0930)
commite487983a4099b6f760056ff7182f2ff543e6da71
treead28bbfbd6b01db8bd3b7d00fadc96c5291ab510
parentb2555a868e3ee58d1b31f9558e3623d49ed2b2f1
tdb2: tdb_repack

Move the tdb1_repack() code into the core, make it general, rename to
tdb_repack().

It's generic code: copy database into temporary, wipe it, copy back.
ccan/tdb2/tdb.c
ccan/tdb2/tdb1.h
ccan/tdb2/tdb1_tdb.c
ccan/tdb2/tdb1_transaction.c
ccan/tdb2/tdb2.h
ccan/tdb2/test/run-93-repack.c [new file with mode: 0644]