Home | History | Annotate | Download | only in orig

Lines Matching refs:mxFrame

55712 ** valid frame in the WAL.  The reader uses this recorded "mxFrame" value
55714 ** to the WAL, but as long as the reader uses its original mxFrame value
55758 ** in the mxFrame field.
55799 ** K will be (mxFrame%HASHTABLE_NPAGE).) Unused slots of the hash table
55926 u32 mxFrame; /* Index of last valid frame in the WAL */
55941 ** WalIndexHdr.mxFrame. nBackfill can only be increased by threads
55944 ** mxFrame back to zero when the WAL is reset.
55951 ** WalIndexHdr.mxFrame must never be less than nBackfillAttempted.
55958 ** the mxFrame for that reader. The value READMARK_NOT_USED (0xffffffff)
55974 ** largest value and will increase an unused aReadMark[] to mxFrame if there
55975 ** is not already an aReadMark[] equal to mxFrame. The exception to the
55976 ** previous sentence is when nBackfill equals mxFrame (meaning that everything
55983 ** if nBackfill equals mxFrame (meaning that all WAL content has been
56547 ** than pWal->hdr.mxFrame.
56549 ** This function is called whenever pWal->hdr.mxFrame is decreased due
56552 ** At most only the hash table containing pWal->hdr.mxFrame needs to be
56554 ** pWal->hdr.mxFrame advances to the point where those hash tables are
56566 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE-1 );
56567 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE );
56568 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE+1 );
56570 if( pWal->hdr.mxFrame==0 ) return;
56573 ** the entry that corresponds to frame pWal->hdr.mxFrame. It is guaranteed
56576 assert( pWal->nWiData>walFramePage(pWal->hdr.mxFrame) );
56577 assert( pWal->apWiData[walFramePage(pWal->hdr.mxFrame)] );
56578 walHashGet(pWal, walFramePage(pWal->hdr.mxFrame), &aHash, &aPgno, &iZero);
56581 ** than pWal->hdr.mxFrame.
56583 iLimit = pWal->hdr.mxFrame - iZero;
56592 ** frame numbers greater than pWal->hdr.mxFrame.
56826 pWal->hdr.mxFrame = iFrame;
56853 pInfo->nBackfillAttempted = pWal->hdr.mxFrame;
56856 if( pWal->hdr.mxFrame ) pInfo->aReadMark[1] = pWal->hdr.mxFrame;
56866 pWal->hdr.mxFrame, pWal->zWalName
57196 ** it only runs if there is actually content in the log (mxFrame>0).
57198 assert( pWal->ckptLock && pWal->hdr.mxFrame>0 );
57199 iLast = pWal->hdr.mxFrame;
57312 pWal->hdr.mxFrame = 0;
57377 if( pInfo->nBackfill<pWal->hdr.mxFrame ){
57395 mxSafeFrame = pWal->hdr.mxFrame;
57408 assert( y<=pWal->hdr.mxFrame );
57468 if( mxSafeFrame==walIndexHdr(pWal)->mxFrame ){
57499 if( pInfo->nBackfill<pWal->hdr.mxFrame ){
57504 assert( pInfo->nBackfill==pWal->hdr.mxFrame );
57889 ** wal-index header has mxFrame==0, then it must be safe to proceed
57895 rc = (pWal->hdr.mxFrame==0 ? SQLITE_OK : WAL_RETRY);
57927 for(iOffset=walFrameOffset(pWal->hdr.mxFrame+1, pWal->hdr.szPage);
58000 ** use WAL frames up to and including pWal->hdr.mxFrame if pWal->readLock>0
58021 u32 mxFrame; /* Wal frame to lock to */
58096 if( !useWal && pInfo->nBackfill==pWal->hdr.mxFrame
58098 && (pWal->pSnapshot==0 || pWal->hdr.mxFrame==0)
58134 ** but not exceeding pWal->hdr.mxFrame and lock that entry.
58138 mxFrame = pWal->hdr.mxFrame;
58140 if( pWal->pSnapshot && pWal->pSnapshot->mxFrame<mxFrame ){
58141 mxFrame = pWal->pSnapshot->mxFrame;
58146 if( mxReadMark<=thisMark && thisMark<=mxFrame ){
58153 && (mxReadMark<mxFrame || mxI==0)
58158 mxReadMark = pInfo->aReadMark[i] = mxFrame;
58184 ** that occur later in the log than pWal->hdr.mxFrame may have been
58187 ** pWal->hdr.mxFrame risks reading a corrupted snapshot. So, retry
58205 ** frame pWal->hdr.mxFrame - then the client would incorrectly assume
58208 ** see any pages past pWal->hdr.mxFrame, this problem does not come up.
58218 assert( mxReadMark<=pWal->hdr.mxFrame );
58340 ** a value equal to or smaller than pSnapshot->mxFrame, but pWal->hdr
58349 ** pSnapshot->mxFrame into the database file. Note that the
58354 assert( pWal->readLock>0 || pWal->hdr.mxFrame==0 );
58355 assert( pInfo->aReadMark[pWal->readLock]<=pSnapshot->mxFrame );
58374 ** frames beyond pSnapshot->mxFrame. If either of these conditions are
58379 && pSnapshot->mxFrame>=pInfo->nBackfillAttempted
58428 u32 iLast = pWal->hdr.mxFrame; /* Last page in WAL for this reader */
58628 Pgno iMax = pWal->hdr.mxFrame;
58636 for(iFrame=pWal->hdr.mxFrame+1;
58654 if( iMax!=pWal->hdr.mxFrame ) walCleanupHash(pWal);
58667 aWalData[0] = pWal->hdr.mxFrame;
58683 assert( aWalData[3]!=pWal->nCkpt || aWalData[0]<=pWal->hdr.mxFrame );
58694 if( aWalData[0]<pWal->hdr.mxFrame ){
58695 pWal->hdr.mxFrame = aWalData[0];
58709 ** it sets pWal->hdr.mxFrame to 0. Otherwise, pWal->hdr.mxFrame is left
58713 ** or not pWal->hdr.mxFrame is modified). An SQLite error code is returned
58722 assert( pInfo->nBackfill==pWal->hdr.mxFrame );
58911 WALTRACE(("WAL%p: frame write begin. %d frames. mxFrame=%d. %s\n",
58912 pWal, cnt, pWal->hdr.mxFrame, isCommit ? "Commit" : "Spill"));
58918 iFirst = pLive->mxFrame+1;
58922 ** log file, instead of appending to it at pWal->hdr.mxFrame.
58932 iFrame = pWal->hdr.mxFrame;
59080 iFrame = pWal->hdr.mxFrame;
59097 pWal->hdr.mxFrame = iFrame;
59197 if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){
59205 if( pnLog ) *pnLog = (int)pWal->hdr.mxFrame;
59357 if( pHdr1->mxFrame<pHdr2->mxFrame ) return -1;
59358 if( pHdr1->mxFrame>pHdr2->mxFrame ) return +1;