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

Revise change from the previous check-in to clarify the situation when handling open journal files, regardless of journal mode.

FossilOrigin-Name: 1c318ef3b76e9a9a5ff2f156a9acddfc1bda0949
This commit is contained in:
mistachkin
2014-03-07 03:31:35 +00:00
parent 8879481868
commit eb443925ef
3 changed files with 8 additions and 8 deletions

View File

@@ -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);