Home | History | Annotate | Download | only in orig

Lines Matching refs:iPg

1809   int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
35320 int iPg;
35324 for(iPg=(sStat.st_size/pgsz); iPg<(nByte/pgsz); iPg++){
35326 if( seekAndWriteFd(pShmNode->h, iPg*pgsz + pgsz-1, "", 1, &x)!=1 ){
51063 ** Parameter iPg is the page number of said page. The pCtx argument
51066 ** If page iPg is present in the cache, and has no outstanding references,
51072 static int pagerUndoCallback(void *pCtx, Pgno iPg){
51078 pPg = sqlite3PagerLookup(pPager, iPg);
57011 u32 iPg = pSegment->aPgno[pSegment->aIndex[pSegment->iNext]];
57012 if( iPg>iMin ){
57013 if( iPg<iRet ){
57014 iRet = iPg;
68213 ** (1) If cells are moving left (from apNew[iPg] to apNew[iPg-1])
68214 ** then it is not safe to update page apNew[iPg] until after
68215 ** the left-hand sibling apNew[iPg-1] has been updated.
68217 ** (2) If cells are moving right (from apNew[iPg] to apNew[iPg+1])
68218 ** then it is not safe to update page apNew[iPg] until after
68219 ** the right-hand sibling apNew[iPg+1] has been updated.
68223 ** The iPg value in the following loop starts at nNew-1 goes down
68232 int iPg = i<0 ? -i : i;
68233 assert( iPg>=0 && iPg<nNew );
68234 if( abDone[iPg] ) continue; /* Skip pages already processed */
68236 || cntOld[iPg-1]>=cntNew[iPg-1] /* Condition (1) is true */
68242 /* Verify condition (1): If cells are moving left, update iPg
68243 ** only after iPg-1 has already been updated. */
68244 assert( iPg==0 || cntOld[iPg-1]>=cntNew[iPg-1] || abDone[iPg-1] );
68246 /* Verify condition (2): If cells are moving right, update iPg
68247 ** only after iPg+1 has already been updated. */
68248 assert( cntNew[iPg]>=cntOld[iPg] || abDone[iPg+1] );
68250 if( iPg==0 ){
68254 iOld = iPg<nOld ? (cntOld[iPg-1] + !leafData) : b.nCell;
68255 iNew = cntNew[iPg-1] + !leafData;
68256 nNewCell = cntNew[iPg] - iNew;
68259 rc = editPage(apNew[iPg], iOld, iNew, nNewCell, &b);
68261 abDone[iPg]++;
68262 apNew[iPg]->nFree = usableSpace-szNew[iPg];
68263 assert( apNew[iPg]->nOverflow==0 );
68264 assert( apNew[iPg]->nCell==nNewCell );
69515 ** corresponds to page iPg is already set.
69517 static int getPageReferenced(IntegrityCk *pCheck, Pgno iPg){
69518 assert( iPg<=pCheck->nPage && sizeof(pCheck->aPgRef[0])==1 );
69519 return (pCheck->aPgRef[iPg/8] & (1 << (iPg & 0x07)));
69523 ** Set the bit in the IntegrityCk.aPgRef[] array that corresponds to page iPg.
69525 static void setPageReferenced(IntegrityCk *pCheck, Pgno iPg){
69526 assert( iPg<=pCheck->nPage && sizeof(pCheck->aPgRef[0])==1 );
69527 pCheck->aPgRef[iPg/8] |= (1 << (iPg & 0x07));
70890 Pgno iPg;
70909 for(iPg=nDestTruncate; rc==SQLITE_OK && iPg<=(Pgno)nDstPage; iPg++){
70910 if( iPg!=PENDING_BYTE_PAGE(p->pDest->pBt) ){
70912 rc = sqlite3PagerGet(pDestPager, iPg, &pPg, 0);
196569 int iPg = 1;
196579 /* This block sets stack variable iPg to the leaf page number that may
196587 iPg = (int)(val>>1);
196592 if( iPg<pSeg->pgnoFirst ){
196593 iPg = pSeg->pgnoFirst;
196597 pIter->iLeafPgno = iPg - 1;
200088 int iPg = 0;
200097 for(iPg=iPrevLeaf+1; iPg<fts5DlidxIterPgno(pDlidx); iPg++){
200098 iKey = FTS5_SEGMENT_ROWID(iSegid, iPg);
200125 iDlidxPrevLeaf = iPg;