From ad0961b31b11f210aeb85803788e4b401d6ba85c Mon Sep 17 00:00:00 2001 From: drh Date: Sat, 21 Feb 2015 00:19:25 +0000 Subject: Keep track of the optimal number of reserved bytes (by looking at reserve byte requests in calls to sqlite3BtreeSetPageSize()) and then change the reserve byte count to the optimal when doing a VACUUM or when using the backup API. FossilOrigin-Name: 28c2b726285ea88b334acfd6390a057d2d244838 --- src/backup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backup.c') diff --git a/src/backup.c b/src/backup.c index e3f869035..81c8b5c5f 100644 --- a/src/backup.c +++ b/src/backup.c @@ -247,7 +247,7 @@ static int backupOnePage( ** guaranteed that the shared-mutex is held by this thread, handle ** p->pSrc may not actually be the owner. */ int nSrcReserve = sqlite3BtreeGetReserveNoMutex(p->pSrc); - int nDestReserve = sqlite3BtreeGetReserve(p->pDest); + int nDestReserve = sqlite3BtreeGetOptimalReserve(p->pDest); #endif int rc = SQLITE_OK; i64 iOff; -- cgit v1.2.3