1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Minor fixes for compilation with SQLITE_OMIT_WAL defined.

FossilOrigin-Name: b81e87e72b976e7157a53a50abc5422e2a6c4c39
This commit is contained in:
dan
2013-05-02 17:37:31 +00:00
parent a309552e2c
commit 32c12fe2bb
5 changed files with 16 additions and 12 deletions

View File

@@ -2871,10 +2871,13 @@ static int readDbPage(PgHdr *pPg, u32 iFrame){
return SQLITE_OK;
}
#ifndef SQLITE_OMIT_WAL
if( iFrame ){
/* Try to pull the page from the write-ahead log. */
rc = sqlite3WalReadFrame(pPager->pWal, iFrame, pgsz, pPg->pData);
}else{
}else
#endif
{
i64 iOffset = (pgno-1)*(i64)pPager->pageSize;
rc = sqlite3OsRead(pPager->fd, pPg->pData, pgsz, iOffset);
if( rc==SQLITE_IOERR_SHORT_READ ){