1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Bug fix in the SQLITE_OPEN_PRIVATECACHE option added a few minutes ago.

FossilOrigin-Name: f3a0f23bc77f8c73924f1d371afae9a0f65bae67
This commit is contained in:
drh
2009-09-09 15:29:41 +00:00
parent ae0931edae
commit f4cfac9d63
3 changed files with 19 additions and 9 deletions

View File

@@ -1545,7 +1545,7 @@ static int openDatabase(
isThreadsafe = sqlite3GlobalConfig.bFullMutex;
}
if( flags & SQLITE_OPEN_PRIVATECACHE ){
flags &= SQLITE_OPEN_SHAREDCACHE;
flags &= ~SQLITE_OPEN_SHAREDCACHE;
}else if( sqlite3GlobalConfig.sharedCacheEnabled ){
flags |= SQLITE_OPEN_SHAREDCACHE;
}