]> git.ozlabs.org Git - ccan/commit
tdb: don't free old recovery area when expanding if already at EOF.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Dec 2011 07:10:57 +0000 (17:40 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Dec 2011 07:10:57 +0000 (17:40 +1030)
commitc46e5c375d5f5e3187034687d241ab6da6eb6205
tree62eda32a969b9377a129289253abd7c715b94a30
parent08b460e9dc91af96b8a2628e275fd3495fbd56e0
tdb: don't free old recovery area when expanding if already at EOF.

We allocate a new recovery area by expanding the file.  But if the
recovery area is already at the end of file (as shown in at least one
client case), we can simply expand the record, rather than freeing it
and creating a new one.
ccan/tdb/test/run-transaction-expand.c
ccan/tdb/transaction.c