1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Questionable changes to support interruptible checkpoint in ZipVFS.

FossilOrigin-Name: c7a9f26d118c7a453d45fa73efa4d1ab79301659
This commit is contained in:
dan
2016-08-13 14:30:23 +00:00
parent 7fb8990688
commit 0f5a186c4c
4 changed files with 16 additions and 11 deletions

View File

@@ -2398,6 +2398,8 @@ btree_open_out:
sqlite3_free(p);
*ppBtree = 0;
}else{
sqlite3_file *pFile;
/* If the B-Tree was successfully opened, set the pager-cache size to the
** default value. Except, when opening on an existing shared pager-cache,
** do not change the pager-cache size.
@@ -2405,6 +2407,11 @@ btree_open_out:
if( sqlite3BtreeSchema(p, 0, 0)==0 ){
sqlite3PagerSetCachesize(p->pBt->pPager, SQLITE_DEFAULT_CACHE_SIZE);
}
pFile = sqlite3PagerFile(pBt->pPager);
if( pFile->pMethods ){
sqlite3OsFileControlHint(pFile, SQLITE_FCNTL_PDB, (void*)&pBt->db);
}
}
if( mutexOpen ){
assert( sqlite3_mutex_held(mutexOpen) );