]> git.ozlabs.org Git - ccan/commit
tdb: use same expansion factor logic when expanding for new recovery area.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Dec 2011 07:09:28 +0000 (17:39 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Dec 2011 07:09:28 +0000 (17:39 +1030)
commit08b460e9dc91af96b8a2628e275fd3495fbd56e0
treec1d351eeed37836f846ef25abf04033aa5b842e3
parent75281499320b9a4368aaa281ae282e55c47ac488
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).
ccan/tdb/io.c
ccan/tdb/tdb_private.h
ccan/tdb/test/run-transaction-expand.c
ccan/tdb/transaction.c