diff options
author | drh <> | 2021-04-05 13:41:42 +0000 |
---|---|---|
committer | drh <> | 2021-04-05 13:41:42 +0000 |
commit | d5e7fff2ca32920e628a40d9f0337af00b0c1f78 (patch) | |
tree | 5b657792861244836c9be00ee1098c6a563970f8 /src | |
parent | 2389048f298bc14a573e242f4522775f85d0c5f4 (diff) | |
download | sqlite-d5e7fff2ca32920e628a40d9f0337af00b0c1f78.tar.gz sqlite-d5e7fff2ca32920e628a40d9f0337af00b0c1f78.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pager.c b/src/pager.c index cd9096ed1..ed2863445 100644 --- a/src/pager.c +++ b/src/pager.c @@ -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 ){ |