• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/sqlite/

Lines Matching refs:mxFrame

40928 ** valid frame in the WAL.  The reader uses this recorded "mxFrame" value
40930 ** to the WAL, but as long as the reader uses its original mxFrame value
40969 ** in the the mxFrame field.
41010 ** K will be (mxFrame%HASHTABLE_NPAGE).) Unused slots of the hash table
41123 u32 mxFrame; /* Index of last valid frame in the WAL */
41138 ** WalIndexHdr.mxFrame. nBackfill can only be increased by threads
41141 ** mxFrame back to zero when the WAL is reset.
41145 ** the mxFrame for that reader. The value READMARK_NOT_USED (0xffffffff)
41161 ** largest value and will increase an unused aReadMark[] to mxFrame if there
41162 ** is not already an aReadMark[] equal to mxFrame. The exception to the
41163 ** previous sentence is when nBackfill equals mxFrame (meaning that everything
41170 ** if nBackfill equals mxFrame (meaning that all WAL content has been
41679 ** than pWal->hdr.mxFrame.
41681 ** This function is called whenever pWal->hdr.mxFrame is decreased due
41684 ** At most only the hash table containing pWal->hdr.mxFrame needs to be
41686 ** pWal->hdr.mxFrame advances to the point where those hash tables are
41698 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE-1 );
41699 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE );
41700 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE+1 );
41702 if( pWal->hdr.mxFrame==0 ) return;
41705 ** the entry that corresponds to frame pWal->hdr.mxFrame. It is guaranteed
41708 assert( pWal->nWiData>walFramePage(pWal->hdr.mxFrame) );
41709 assert( pWal->apWiData[walFramePage(pWal->hdr.mxFrame)] );
41710 walHashGet(pWal, walFramePage(pWal->hdr.mxFrame), &aHash, &aPgno, &iZero);
41713 ** than pWal->hdr.mxFrame.
41715 iLimit = pWal->hdr.mxFrame - iZero;
41724 ** frame numbers greater than pWal->hdr.mxFrame.
41952 pWal->hdr.mxFrame = iFrame;
42248 ** it only runs if there is actually content in the log (mxFrame>0).
42250 assert( pWal->ckptLock && pWal->hdr.mxFrame>0 );
42251 iLast = pWal->hdr.mxFrame;
42364 if( pWal->hdr.mxFrame==0 ) return SQLITE_OK;
42384 mxSafeFrame = pWal->hdr.mxFrame;
42390 assert( y<=pWal->hdr.mxFrame );
42442 if( mxSafeFrame==walIndexHdr(pWal)->mxFrame ){
42681 ** use WAL frames up to and including pWal->hdr.mxFrame if pWal->readLock>0
42744 if( !useWal && pInfo->nBackfill==pWal->hdr.mxFrame ){
42778 ** but not exceeding pWal->hdr.mxFrame and lock that entry.
42784 if( mxReadMark<=thisMark && thisMark<=pWal->hdr.mxFrame ){
42793 ** be mxFrame, then retry.
42797 pInfo->aReadMark[1] = pWal->hdr.mxFrame;
42805 if( mxReadMark < pWal->hdr.mxFrame ){
42809 mxReadMark = pInfo->aReadMark[i] = pWal->hdr.mxFrame;
42831 ** that occur later in the log than pWal->hdr.mxFrame may have been
42834 ** pWal->hdr.mxFrame risks reading a corrupted snapshot. So, retry
42850 assert( mxReadMark<=pWal->hdr.mxFrame );
42909 u32 iLast = pWal->hdr.mxFrame; /* Last page in WAL for this reader */
43098 Pgno iMax = pWal->hdr.mxFrame;
43106 for(iFrame=pWal->hdr.mxFrame+1;
43138 aWalData[0] = pWal->hdr.mxFrame;
43154 assert( aWalData[3]!=pWal->nCkpt || aWalData[0]<=pWal->hdr.mxFrame );
43165 if( aWalData[0]<pWal->hdr.mxFrame ){
43166 pWal->hdr.mxFrame = aWalData[0];
43180 ** it sets pWal->hdr.mxFrame to 0. Otherwise, pWal->hdr.mxFrame is left
43184 ** or not pWal->hdr.mxFrame is modified). An SQLite error code is returned
43193 assert( pInfo->nBackfill==pWal->hdr.mxFrame );
43210 pWal->hdr.mxFrame = 0;
43255 WALTRACE(("WAL%p: frame write begin. %d frames. mxFrame=%d. %s\n",
43256 pWal, cnt, pWal->hdr.mxFrame, isCommit ? "Commit" : "Spill"));
43261 ** log file, instead of appending to it at pWal->hdr.mxFrame.
43271 iFrame = pWal->hdr.mxFrame;
43368 iFrame = pWal->hdr.mxFrame;
43384 pWal->hdr.mxFrame = iFrame;