aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-07-25 22:40:12 +0000
committerdrh <drh@noemail.net>2016-07-25 22:40:12 +0000
commit2b62b5def80c984918d197631723ea583a215efb (patch)
tree3ea3fed772a44f8b107226a58ca96b02089bf770 /src
parent07d9a031870a5eacb5cb31fdf67138ff5579acab (diff)
downloadsqlite-2b62b5def80c984918d197631723ea583a215efb.tar.gz
sqlite-2b62b5def80c984918d197631723ea583a215efb.zip
In the VACUUM command, set the cache_size of the transient vacuum_db database
to be the same as the database being vacuumed. FossilOrigin-Name: b78d99548ac53ac10dcc38368cc4b29c8cbcb09b
Diffstat (limited to 'src')
-rw-r--r--src/vacuum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vacuum.c b/src/vacuum.c
index 9ab7f766e..16c4be01c 100644
--- a/src/vacuum.c
+++ b/src/vacuum.c
@@ -197,6 +197,7 @@ int sqlite3RunVacuum(char **pzErrMsg, sqlite3 *db){
}
#endif
+ sqlite3BtreeSetCacheSize(pTemp, db->aDb[0].pSchema->cache_size);
rc = execSql(db, pzErrMsg, "PRAGMA vacuum_db.synchronous=OFF");
if( rc!=SQLITE_OK ) goto end_of_vacuum;