tdb2: copy tdb1's changed expansion logic.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 29 Jan 2012 22:54:50 +0000 (09:24 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 29 Jan 2012 22:54:50 +0000 (09:24 +1030)
commitefbf52b4fe62eeed085961d7e2689b869bae63dc
tree2b9c45dca6168947ca3c25443268a71043b43b12
parent205e198471a481b849d05b5756261f1739c0c8b2
tdb2: copy tdb1's changed expansion logic.

TDB2 uses the same expansion logic as TDB1, which got factored out
recently.  So update TDB2 to match.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit c438ec17d7b2efe76e56e5fc5ab88bd4a02735e8)
lib/tdb2/free.c
lib/tdb2/private.h
lib/tdb2/transaction.c