• Home
  • Raw
  • Download

Lines Matching refs:iFrame

51001   u32 iFrame = 0;              /* Frame of WAL containing pgno */
51007 rc = sqlite3WalFindFrame(pPager->pWal, pPg->pgno, &iFrame);
51010 if( iFrame ){
51011 rc = sqlite3WalReadFrame(pPager->pWal, iFrame,pPager->pageSize,pPg->pData);
53519 u32 iFrame = 0; /* Frame to read from WAL file */
53547 rc = sqlite3WalFindFrame(pPager->pWal, pgno, &iFrame);
53553 if( bMmapOk && iFrame==0 ){
56048 #define walFrameOffset(iFrame, szPage) ( \
56049 WAL_HDRSIZE + ((iFrame)-1)*(i64)((szPage)+WAL_FRAME_HDRSIZE) \
56539 static int walFramePage(u32 iFrame){
56540 int iHash = (iFrame+HASHTABLE_NPAGE-HASHTABLE_NPAGE_ONE-1) / HASHTABLE_NPAGE;
56541 assert( (iHash==0 || iFrame>HASHTABLE_NPAGE_ONE)
56542 && (iHash>=1 || iFrame<=HASHTABLE_NPAGE_ONE)
56543 && (iHash<=1 || iFrame>(HASHTABLE_NPAGE_ONE+HASHTABLE_NPAGE))
56544 && (iHash>=2 || iFrame<=HASHTABLE_NPAGE_ONE+HASHTABLE_NPAGE)
56545 && (iHash<=2 || iFrame>(HASHTABLE_NPAGE_ONE+2*HASHTABLE_NPAGE))
56553 static u32 walFramePgno(Wal *pWal, u32 iFrame){
56554 int iHash = walFramePage(iFrame);
56556 return pWal->apWiData[0][WALINDEX_HDR_SIZE/sizeof(u32) + iFrame - 1];
56558 return pWal->apWiData[iHash][(iFrame-1-HASHTABLE_NPAGE_ONE)%HASHTABLE_NPAGE];
56635 static int walIndexAppend(Wal *pWal, u32 iFrame, u32 iPage){
56641 rc = walHashGet(pWal, walFramePage(iFrame), &aHash, &aPgno, &iZero);
56651 idx = iFrame - iZero;
56766 int iFrame; /* Index of last frame read */
56826 iFrame = 0;
56832 iFrame++;
56837 rc = walIndexAppend(pWal, iFrame, pgno);
56842 pWal->hdr.mxFrame = iFrame;
57383 u32 iFrame = 0; /* Wal frame containing data for iDbpage */
57462 while( rc==SQLITE_OK && 0==walIteratorNext(pIter, &iDbpage, &iFrame) ){
57464 assert( walFramePgno(pWal, iFrame)==iDbpage );
57469 if( iFrame<=nBackfill || iFrame>mxSafeFrame || iDbpage>mxPage ){
57472 iOffset = walFrameOffset(iFrame, szPage) + WAL_FRAME_HDRSIZE;
58502 u32 iFrame = aHash[iKey] + iZero;
58503 if( iFrame<=iLast && iFrame>=pWal->minFrame && aPgno[aHash[iKey]]==pgno ){
58504 assert( iFrame>iRead || CORRUPT_DB );
58505 iRead = iFrame;
58645 Pgno iFrame;
58652 for(iFrame=pWal->hdr.mxFrame+1;
58653 ALWAYS(rc==SQLITE_OK) && iFrame<=iMax;
58654 iFrame++
58667 assert( walFramePgno(pWal, iFrame)!=1 );
58668 rc = xUndo(pUndoCtx, walFramePgno(pWal, iFrame));
58908 u32 iFrame; /* Next frame address */
58948 iFrame = pWal->hdr.mxFrame;
58949 if( iFrame==0 ){
58995 iOffset = walFrameOffset(iFrame+1, szPage);
59028 iFrame++;
59029 assert( iOffset==walFrameOffset(iFrame, szPage) );
59040 rc = walRewriteChecksums(pWal, iFrame);
59084 if( walFrameOffset(iFrame+nExtra+1, szPage)>pWal->mxWalSize ){
59085 sz = walFrameOffset(iFrame+nExtra+1, szPage);
59096 iFrame = pWal->hdr.mxFrame;
59099 iFrame++;
59100 rc = walIndexAppend(pWal, iFrame, p->pgno);
59103 iFrame++;
59105 rc = walIndexAppend(pWal, iFrame, pLast->pgno);
59113 pWal->hdr.mxFrame = iFrame;
59121 pWal->iCallback = iFrame;
175428 u32 iFrame;
175445 iFrame = (u32)((iOff-32) / (i64)(iAmt+24)) + 1;
175446 if( pRbu->iMaxFrame<iFrame ) pRbu->iMaxFrame = iFrame;
175447 pRbu->aFrame[pRbu->nFrame].iWalFrame = iFrame;