Do not set the pager to persistent error state if a call to OsAccess() fails. (CVS 5004)

FossilOrigin-Name: aa16eb572915632bfff88d544f9c428ca723346e
This commit is contained in:
danielk1977
2008-04-14 16:37:10 +00:00
parent 1c9f50a277
commit a3e5218c6e
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
** file simultaneously, or one process from reading the database while
** another is writing.
**
** @(#) $Id: pager.c,v 1.424 2008/04/14 01:00:58 drh Exp $
** @(#) $Id: pager.c,v 1.425 2008/04/14 16:37:10 danielk1977 Exp $
*/
#ifndef SQLITE_OMIT_DISKIO
#include "sqliteInt.h"
@@ -3382,7 +3382,7 @@ static int pagerSharedLock(Pager *pPager){
*/
rc = hasHotJournal(pPager);
if( rc<0 ){
return pager_error(pPager, SQLITE_IOERR_NOMEM);
return SQLITE_IOERR_NOMEM;
}
if( rc==1 || isHot ){
/* Get an EXCLUSIVE lock on the database file. At this point it is