1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix an assert() failure caused by setting "PRAGMA journal_mode=off" on an database in exclusive-mode that has already opened the journal file.

FossilOrigin-Name: 40db3e40126db1035fcc12989026915744dc5651
This commit is contained in:
dan
2015-05-01 16:57:24 +00:00
parent 5789d1a46f
commit 929b923388
4 changed files with 26 additions and 9 deletions

View File

@@ -7010,6 +7010,8 @@ int sqlite3PagerSetJournalMode(Pager *pPager, int eMode){
}
assert( state==pPager->eState );
}
}else if( eMode==PAGER_JOURNALMODE_OFF ){
sqlite3OsClose(pPager->jfd);
}
}