tdb: use same expansion factor logic when expanding for new recovery area.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Dec 2011 03:47:16 +0000 (14:17 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Dec 2011 03:47:16 +0000 (14:17 +1030)
commit3a2a755e3380a8f81374009d463cd06161352507
treea1394ae9bbb3732dc709562b47b36368c2a1439b
parentc23f1ee0c9342c6562166331c1b8bf9a2601a77c
tdb: use same expansion factor logic when expanding for new recovery area.

If we're expanding because the current recovery area is too small, we
expand only the amount we need.  This can quickly lead to exponential
growth when we have a slowly-expanding record (hence a
slowly-expanding transaction size).

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