Lines Matching defs:dbSize
40426 ** * The dbSize, dbOrigSize and dbFileSize variables may not be trusted.
40445 ** * The dbSize variable may be trusted (even if a user-level read
40476 ** * The dbSize, dbOrigSize and dbFileSize variables are all valid.
40804 ** dbSize, dbOrigSize, dbFileSize
40806 ** Variable dbSize is set to the number of pages in the database file.
40810 ** dbSize is set based on the size of the database file, which may be
40814 ** dbSize is rounded down (i.e. a 5KB file with 2K page-size has dbSize==2).
40817 ** to dbSize==1).
40820 ** dbSize are modified in the cache, dbSize is updated accordingly.
40822 ** dbSize is updated.
40825 ** PAGER_WRITER_LOCKED and higher. dbOrigSize is a copy of the dbSize
40831 ** the file on disk in pages. It is set to a copy of dbSize when the
40838 ** that the database file is larger than the database image (Pager.dbSize),
40851 ** dbHintSize is set to a copy of the dbSize variable when a
40895 Pgno dbSize; /* Number of pages in the database */
40896 Pgno dbOrigSize; /* dbSize before the current transaction */
41150 assert( pPager->dbSize==pPager->dbOrigSize );
41231 "Size: dbsize=%d dbOrigSize=%d dbFileSize=%d\n"
41255 , (int)p->dbSize, (int)p->dbOrigSize, (int)p->dbFileSize
42232 if( pPager->dbSize==0 && sqlite3PcacheRefCount(pPager->pPCache)>0 ){
42245 sqlite3PcacheTruncate(pPager->pPCache, pPager->dbSize);
42254 }else if( rc==SQLITE_OK && bCommit && pPager->dbFileSize>pPager->dbSize ){
42262 rc = pager_truncate(pPager, pPager->dbSize);
42368 ** is greater than the current value of Pager.dbSize, then playback is
42449 if( pgno>(Pgno)pPager->dbSize || sqlite3BitvecTest(pDone, pgno) ){
43012 pPager->dbSize = mxPg;
43260 pPager->dbSize = pPager->dbOrigSize;
43511 ** In either case, before playback commences the Pager.dbSize variable
43536 pPager->dbSize = pSavepoint ? pSavepoint->nOrig : pPager->dbOrigSize;
43554 ** greater than the current database size (pPager->dbSize) but those
43865 if( (pPager->memDb==0 || pPager->dbSize==0)
43882 pPager->dbSize = (Pgno)((nByte+pageSize-1)/pageSize);
43925 assert( pPager->mxPgno>=pPager->dbSize ); /* OP_MaxPgcnt enforces this */
43998 *pnPage = (int)pPager->dbSize;
44060 assert( !subjRequiresPage(pPg) || pPg->pgno<=pPg->pPager->dbSize );
44081 assert( pPager->dbSize>=nPage );
44083 pPager->dbSize = nPage;
44446 ** * The page number is greater than Pager.dbSize, or
44480 && pPager->dbHintSize<pPager->dbSize
44483 sqlite3_int64 szFile = pPager->pageSize * (sqlite3_int64)pPager->dbSize;
44485 pPager->dbHintSize = pPager->dbSize;
44492 ** than Pager.dbSize, this means sqlite3PagerTruncateImage() was called to
44499 if( pgno<=pPager->dbSize && 0==(pList->flags&PGHDR_DONT_WRITE) ){
44711 rc==SQLITE_OK && pPg->pgno>pPager->dbSize && subjRequiresPage(pPg)
45068 if( pPager->dbSize==0 ) return SQLITE_OK;
45436 rc = pagerPagecount(pPager, &pPager->dbSize);
45616 if( MEMDB || pPager->dbSize<pgno || noContent || !isOpen(pPager->fd) ){
45747 pPager->pInJournal = sqlite3BitvecCreate(pPager->dbSize);
45873 pPager->dbHintSize = pPager->dbSize;
45874 pPager->dbFileSize = pPager->dbSize;
45875 pPager->dbOrigSize = pPager->dbSize;
46015 if( pPager->dbSize<pPg->pgno ){
46016 pPager->dbSize = pPg->pgno;
46068 nPageCount = pPager->dbSize;
46210 if( !pPager->changeCountDone && ALWAYS(pPager->dbSize>0) ){
46350 pPager->zFilename, zMaster, pPager->dbSize));
46374 rc = pagerWalFrames(pPager, pList, pPager->dbSize, 1);
46412 && pPager->dbSize>=pPager->dbOrigSize
46467 if( pPager->dbSize>pPager->dbFileSize ){
46468 Pgno nNew = pPager->dbSize - (pPager->dbSize==PAGER_MJ_PGNO(pPager));
46658 a[3] = pPager->eState==PAGER_OPEN ? -1 : (int) pPager->dbSize;
46737 aNew[ii].nOrig = pPager->dbSize;
46744 aNew[ii].pInSavepoint = sqlite3BitvecCreate(pPager->dbSize);
47027 sqlite3PcacheMove(pPgOld, pPager->dbSize+1);
48640 u32 nTruncate; /* dbsize field from frame header */