mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add the SQLITE_CONFIG_STMTJRNL_SPILL option for sqlite3_config().
FossilOrigin-Name: b6c4202432dc96f8f1740f52d0bf872116357fcc
This commit is contained in:
@@ -4358,11 +4358,11 @@ static int openSubJournal(Pager *pPager){
|
||||
const int flags = SQLITE_OPEN_SUBJOURNAL | SQLITE_OPEN_READWRITE
|
||||
| SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE
|
||||
| SQLITE_OPEN_DELETEONCLOSE;
|
||||
int nBuf = 64*1024;
|
||||
int nStmtSpill = sqlite3Config.nStmtSpill;
|
||||
if( pPager->journalMode==PAGER_JOURNALMODE_MEMORY || pPager->subjInMemory ){
|
||||
nBuf = -1;
|
||||
nStmtSpill = -1;
|
||||
}
|
||||
rc = sqlite3JournalOpen(pPager->pVfs, 0, pPager->sjfd, flags, nBuf);
|
||||
rc = sqlite3JournalOpen(pPager->pVfs, 0, pPager->sjfd, flags, nStmtSpill);
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user