]> git.ozlabs.org Git - ccan/commitdiff
tdb2: handle non-transaction-page-aligned sizes in recovery.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Apr 2011 01:46:35 +0000 (11:16 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Apr 2011 01:46:35 +0000 (11:16 +0930)
tdb1 always makes the tdb a multiple of the transaction page size,
tdb2 doesn't.  This means that if a transaction hits the exact end of
the file, we might need to save off a partial page.

So that we don't have to rewrite tdb_recovery_size() too, we simply do
a short read and memset the unused section to 0 (to keep valgrind
happy).


No differences found