diff options
author | drh <drh@noemail.net> | 2015-09-24 14:26:51 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-09-24 14:26:51 +0000 |
commit | 9ec0efd946b8015f8b3ba3b726bc39f0b15d306c (patch) | |
tree | b4764dfa9ca1b2d064f80f3d13056f2b5bbeba61 /src/backup.c | |
parent | 438b881540c83370029c73c8a1d7eba78979c491 (diff) | |
parent | 22c733da644bcf8d614b7caf058c7a2b51286ab8 (diff) | |
download | sqlite-9ec0efd946b8015f8b3ba3b726bc39f0b15d306c.tar.gz sqlite-9ec0efd946b8015f8b3ba3b726bc39f0b15d306c.zip |
Merge all the latest trunk enhancements into the sessions branch.
FossilOrigin-Name: c91065f8edb1e54076791716fc20d3fcfe3070dc
Diffstat (limited to 'src/backup.c')
-rw-r--r-- | src/backup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backup.c b/src/backup.c index 94e578d9d..69e3c5282 100644 --- a/src/backup.c +++ b/src/backup.c @@ -769,6 +769,10 @@ int sqlite3BtreeCopyFile(Btree *pTo, Btree *pFrom){ b.pDest = pTo; b.iNext = 1; +#ifdef SQLITE_HAS_CODEC + sqlite3PagerAlignReserve(sqlite3BtreePager(pTo), sqlite3BtreePager(pFrom)); +#endif + /* 0x7FFFFFFF is the hard limit for the number of pages in a database ** file. By passing this as the number of pages to copy to ** sqlite3_backup_step(), we can guarantee that the copy finishes |