]> git.ozlabs.org Git - ccan/commit
tdb2: tdb1: use same expansion factor logic when expanding for new recovery area.
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 28 Jan 2012 04:14:43 +0000 (14:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 28 Jan 2012 04:14:43 +0000 (14:44 +1030)
commit695e2ae319052ceb410ef00d0181aa607f1ceb6d
tree372e99c24639e3b8de39aa91a50402c1ef8ee1fa
parent72021c1262ae0c1826891a149d8196b18fa7961f
tdb2: tdb1: 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).

(Syncs with tdb1 SAMBA patch 3a2a755e3380a8f81374009d463cd06161352507)
ccan/tdb2/tdb1_io.c
ccan/tdb2/tdb1_private.h
ccan/tdb2/tdb1_transaction.c