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

Fix an issue with the previous check-in, (6929). (CVS 6930)

FossilOrigin-Name: e5165c80abfdba0ad74e1042e4c94fe00d4b3308
This commit is contained in:
drh
2009-07-24 21:23:15 +00:00
parent 4775ecd06a
commit d05c223c2e
3 changed files with 10 additions and 10 deletions

View File

@@ -18,7 +18,7 @@
** file simultaneously, or one process from reading the database while
** another is writing.
**
** @(#) $Id: pager.c,v 1.616 2009/07/24 19:01:19 drh Exp $
** @(#) $Id: pager.c,v 1.617 2009/07/24 21:23:16 drh Exp $
*/
#ifndef SQLITE_OMIT_DISKIO
#include "sqliteInt.h"
@@ -3414,7 +3414,7 @@ static int hasHotJournal(Pager *pPager, int *pExists){
int exists; /* True if a journal file is present */
assert( pPager!=0 );
assert( useJournal );
assert( pPager->useJournal );
assert( isOpen(pPager->fd) );
assert( !isOpen(pPager->jfd) );
@@ -3512,7 +3512,7 @@ static int readDbPage(PgHdr *pPg){
assert( pPager->state>=PAGER_SHARED && !MEMDB );
assert( isOpen(pPager->fd) );
if( !isOpen(pPager->fd) ){
if( NEVER(!isOpen(pPager->fd)) ){
assert( pPager->tempFile );
memset(pPg->pData, 0, pPager->pageSize);
return SQLITE_OK;