tdb: don't truncate tdb on recovery
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 00:20:41 +0000 (10:50 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 00:20:41 +0000 (10:50 +1030)
commit8c3fda4318adc71899bc41486d5616da3a91a688
tree1c274b45ee9e0be25f46e320659352b5e1a26456
parent9f295eecffd92e55584fc36539cd85cd32c832de
tdb: don't truncate tdb on recovery

The current recovery code truncates the tdb file on recovery.  This is
fine if recovery is only done on first open, but is a really bad idea
as we move to allowing recovery on "live" databases.

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