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

Simplification of changes for SQLITE_OMIT_WAL support in pager.c.

FossilOrigin-Name: afb2484c64bf0cdec8240b9ecd0a794c44a63066
This commit is contained in:
shaneh
2010-08-26 05:23:37 +00:00
parent 1cca0d221d
commit 71fe25428e
3 changed files with 8 additions and 22 deletions

View File

@@ -2999,11 +2999,7 @@ static int pagerPagecount(Pager *pPager, Pgno *pnPage){
*/
assert( pPager->eState==PAGER_OPEN );
assert( pPager->eLock>=SHARED_LOCK || pPager->noReadlock );
#ifndef SQLITE_OMIT_WAL
nPage = sqlite3WalDbsize(pPager->pWal);
#else
nPage = 0;
#endif
/* If the database size was not available from the WAL sub-system,
** determine it based on the size of the database file. If the size