tdb: don't free old recovery area when expanding if already at EOF.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Dec 2011 03:47:25 +0000 (14:17 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Dec 2011 05:25:40 +0000 (06:25 +0100)
commit5767224b7f4703c3195aa69eef4352d80980f95e
tree9a53b804f37279797758dbdab87a10f455ac502f
parent3a2a755e3380a8f81374009d463cd06161352507
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.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Dec 21 06:25:40 CET 2011 on sn-devel-104
lib/tdb/common/transaction.c