diff options
author | mistachkin <mistachkin@noemail.net> | 2014-03-07 03:31:35 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2014-03-07 03:31:35 +0000 |
commit | eb443925ef31cbdcfb42655f7a9aa44c65e4c102 (patch) | |
tree | 3fd993b88f77502200d262b35dde59cbd2b9de6d /src | |
parent | 8879481868f56a18f53aad35b2e9b384c52601d1 (diff) | |
download | sqlite-eb443925ef31cbdcfb42655f7a9aa44c65e4c102.tar.gz sqlite-eb443925ef31cbdcfb42655f7a9aa44c65e4c102.zip |
Revise change from the previous check-in to clarify the situation when handling open journal files, regardless of journal mode.
FossilOrigin-Name: 1c318ef3b76e9a9a5ff2f156a9acddfc1bda0949
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 6a4746e34..e2486caa0 100644 --- a/src/pager.c +++ b/src/pager.c @@ -4897,7 +4897,7 @@ static int hasHotJournal(Pager *pPager, int *pExists){ */ rc = pagerPagecount(pPager, &nPage); if( rc==SQLITE_OK ){ - if( nPage==0 && pPager->journalMode!=PAGER_JOURNALMODE_PERSIST ){ + if( nPage==0 && !jrnlOpen ){ sqlite3BeginBenignMalloc(); if( pagerLockDb(pPager, RESERVED_LOCK)==SQLITE_OK ){ sqlite3OsDelete(pVfs, pPager->zJournal, 0); |