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

Do not invoke the xDelete method when converting to PRAGMA journal_mode=OFF

if the underlying VFS does not support that method.
dbsqlfuzz 39d6af88ef5242f866c4f9b21ede330c5c1e36a8.

FossilOrigin-Name: d91450847a3a3a7217f8f5947adea9a4d12cf77607d40f9724d6ba093919b524
This commit is contained in:
drh
2021-04-05 13:41:42 +00:00
parent 2389048f29
commit d5e7fff2ca
4 changed files with 19 additions and 9 deletions

View File

@@ -7326,7 +7326,7 @@ int sqlite3PagerSetJournalMode(Pager *pPager, int eMode){
assert( rc==SQLITE_OK );
rc = pagerLockDb(pPager, RESERVED_LOCK);
}
if( rc==SQLITE_OK ){
if( rc==SQLITE_OK && pPager->pVfs->xDelete!=0 ){
sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
}
if( rc==SQLITE_OK && state==PAGER_READER ){