mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Automatically set temp_store=MEMORY if the VFS is kvvfs.
FossilOrigin-Name: a4d40f6346e7eb2a5239684dba86f297358122768a4d4bf6786b6028f4300e04
This commit is contained in:
@@ -3395,6 +3395,12 @@ static int openDatabase(
|
||||
sqlite3_free(zErrMsg);
|
||||
goto opendb_out;
|
||||
}
|
||||
assert( db->pVfs!=0 );
|
||||
#if defined(SQLITE_OS_KV) || defined(SQLITE_OS_KV_OPTIONAL)
|
||||
if( sqlite3_stricmp(db->pVfs->zName, "kvvfs")==0 ){
|
||||
db->temp_store = 2;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Open the backend database driver */
|
||||
rc = sqlite3BtreeOpen(db->pVfs, zOpen, db, &db->aDb[0].pBt, 0,
|
||||
|
Reference in New Issue
Block a user