Lines Matching refs:iPg
1165 int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
43259 int iPg;
43263 for(iPg=(sStat.st_size/pgsz); iPg<(nByte/pgsz); iPg++){
43265 if( seekAndWriteFd(pShmNode->hShm, iPg*pgsz + pgsz-1,"",1,&x)!=1 ){
60209 static int pagerUndoCallback(void *pCtx, Pgno iPg){
60215 pPg = sqlite3PagerLookup(pPager, iPg);
66328 u32 iPg; /* Current 32KB wal-index page */
66387 for(iPg=0; iPg<=(u32)walFramePage(iLastFrame); iPg++){
66390 u32 iLast = MIN(iLastFrame, HASHTABLE_NPAGE_ONE+iPg*HASHTABLE_NPAGE);
66391 u32 iFirst = 1 + (iPg==0?0:HASHTABLE_NPAGE_ONE+(iPg-1)*HASHTABLE_NPAGE);
66393 rc = walIndexPage(pWal, iPg, (volatile u32**)&aShare);
66396 SEH_SET_ON_ERROR(iPg, aShare);
66397 pWal->apWiData[iPg] = aPrivate;
66423 pWal->apWiData[iPg] = aShare;
66425 nHdr = (iPg==0 ? WALINDEX_HDR_SIZE : 0);
66675 u32 iPg = pSegment->aPgno[pSegment->aIndex[pSegment->iNext]];
66676 if( iPg>iMin ){
66677 if( iPg<iRet ){
66678 iRet = iPg;
79341 int iPg = i<0 ? -i : i;
79342 assert( iPg>=0 && iPg<nNew );
79343 assert( iPg>=1 || i>=0 );
79344 assert( iPg<ArraySize(cntOld) );
79345 if( abDone[iPg] ) continue; /* Skip pages already processed */
79347 || cntOld[iPg-1]>=cntNew[iPg-1] /* Condition (1) is true */
79355 assert( iPg==0 || cntOld[iPg-1]>=cntNew[iPg-1] || abDone[iPg-1] );
79359 assert( cntNew[iPg]>=cntOld[iPg] || abDone[iPg+1] );
79361 if( iPg==0 ){
79365 iOld = iPg<nOld ? (cntOld[iPg-1] + !leafData) : b.nCell;
79366 iNew = cntNew[iPg-1] + !leafData;
79367 nNewCell = cntNew[iPg] - iNew;
79370 rc = editPage(apNew[iPg], iOld, iNew, nNewCell, &b);
79372 abDone[iPg]++;
79373 apNew[iPg]->nFree = usableSpace-szNew[iPg];
79374 assert( apNew[iPg]->nOverflow==0 );
79375 assert( apNew[iPg]->nCell==nNewCell );
81076 static int getPageReferenced(IntegrityCk *pCheck, Pgno iPg){
81078 assert( iPg<=pCheck->nCkPage && sizeof(pCheck->aPgRef[0])==1 );
81079 return (pCheck->aPgRef[iPg/8] & (1 << (iPg & 0x07)));
81085 static void setPageReferenced(IntegrityCk *pCheck, Pgno iPg){
81087 assert( iPg<=pCheck->nCkPage && sizeof(pCheck->aPgRef[0])==1 );
81088 pCheck->aPgRef[iPg/8] |= (1 << (iPg & 0x07));
82484 Pgno iPg;
82503 for(iPg=nDestTruncate; rc==SQLITE_OK && iPg<=(Pgno)nDstPage; iPg++){
82504 if( iPg!=PENDING_BYTE_PAGE(p->pDest->pBt) ){
82506 rc = sqlite3PagerGet(pDestPager, iPg, &pPg, 0);
224078 u32 iPg, /* Page number to load */
224093 rc = sqlite3PagerGet(sqlite3BtreePager(pBt), iPg, &pDbPage, 0);
243165 int iPg = 1;
243183 iPg = (int)(val>>1);
243189 if( iPg<pSeg->pgnoFirst ){
243190 iPg = pSeg->pgnoFirst;
243194 pIter->iLeafPgno = iPg - 1;
243264 int iPg = -1; /* Page of segment to open */
243276 iPg = (int)(val>>1);
243287 if( iPg>=0 ){
243288 pIter->iLeafPgno = iPg - 1;
243811 int iPg = ((u64)pSeg->iRowid) % pArray->nTombstone;
243812 assert( iPg>=0 );
243816 if( pArray->apTombstone[iPg]==0 ){
243817 pArray->apTombstone[iPg] = fts5DataRead(pIter->pIndex,
243818 FTS5_TOMBSTONE_ROWID(pSeg->pSeg->iSegid, iPg)
243820 if( pArray->apTombstone[iPg]==0 ) return 0;
243824 pArray->apTombstone[iPg],
248147 int iPg = -1;
248155 iPg = iRowid % pSeg->nPgTombstone;
248156 pPg = fts5DataRead(p, FTS5_TOMBSTONE_ROWID(pSeg->iSegid,iPg));
248163 fts5DataWrite(p, FTS5_TOMBSTONE_ROWID(pSeg->iSegid,iPg), pPg->p, pPg->nn);
248174 fts5IndexTombstoneRebuild(p, pSeg, pPg, iPg, szKey, &nHash, &apHash);
248611 int iPg = 0;
248620 for(iPg=iPrevLeaf+1; iPg<fts5DlidxIterPgno(pDlidx); iPg++){
248621 iKey = FTS5_SEGMENT_ROWID(iSegid, iPg);
248651 iDlidxPrevLeaf = iPg;