aboutsummaryrefslogtreecommitdiff
path: root/src/backup.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2015-03-21 15:45:24 +0000
committerdan <dan@noemail.net>2015-03-21 15:45:24 +0000
commit71138b0f0fe7746b685d2cafb6ce821d1a1dd69b (patch)
tree702071165ccf40e4a1728080fcfb262369e0e57e /src/backup.c
parent8885708c3ceebe9f7b7f7851faf1ca3c998b0f2e (diff)
parentb4e0fd26e3fad8124dd51a1ee1dc6e6286eff5a0 (diff)
downloadsqlite-71138b0f0fe7746b685d2cafb6ce821d1a1dd69b.tar.gz
sqlite-71138b0f0fe7746b685d2cafb6ce821d1a1dd69b.zip
Merge trunk changes with this branch.
FossilOrigin-Name: 142743918fd5a6d79fa10c44398360c3684a255a
Diffstat (limited to 'src/backup.c')
-rw-r--r--src/backup.c2
1 files changed, 1 insertions, 1 deletions
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;