Lines Matching refs:nSegment
61189 int nSegment; /* Number of entries in aSegment[] */
62211 for(i=p->nSegment-1; i>=0; i--){
62392 int nSegment; /* Number of segments to merge */
62406 nSegment = walFramePage(iLast) + 1;
62408 + (nSegment-1)*sizeof(struct WalSegment)
62415 p->nSegment = nSegment;
62427 for(i=walFramePage(nBackfill+1); rc==SQLITE_OK && i<nSegment; i++){
62436 if( (i+1)==nSegment ){
62441 aIndex = &((ht_slot *)&p->aSegment[p->nSegment])[sLoc.iZero];
173506 int nSegment; /* Size of apSegment array */
176254 if( (pCsr->nSegment%16)==0 ){
176256 sqlite3_int64 nByte = (pCsr->nSegment + 16)*sizeof(Fts3SegReader*);
176264 pCsr->apSegment[pCsr->nSegment++] = pNew;
176328 rc = sqlite3Fts3SegReaderNew(pCsr->nSegment+1,
185120 for(ii=0; rc==SQLITE_OK && ii<pMsr->nSegment; ii++){
185437 int nSegment, /* Size of apSegment array */
185443 assert( nSuspect<=nSegment );
185445 if( nSuspect==nSegment ) nSuspect--;
185448 for(j=i; j<(nSegment-1); j++){
186302 int nSeg = pCsr->nSegment;
186310 for(i=0; pCsr->bRestart==0 && i<pCsr->nSegment; i++){
186345 int nSegment = pCsr->nSegment;
186358 for(i=0; i<nSegment; i++){
186401 for(i=0; i<pCsr->nSegment; i++){
186438 int nSegment = pCsr->nSegment;
186444 if( pCsr->nSegment==0 ) return SQLITE_OK;
186462 fts3SegReaderSort(apSegment, nSegment, pCsr->nAdvance, fts3SegReaderCmp);
186489 while( nMerge<nSegment
186604 for(i=0; i<pCsr->nSegment; i++){
186610 pCsr->nSegment = 0;
186784 if( rc!=SQLITE_OK || csr.nSegment==0 ) goto finished;
186796 if( csr.nSegment==1 && 0==fts3SegReaderIsPending(csr.apSegment[0]) ){
186815 assert( csr.nSegment>0 );
186837 p, iLangid, iIndex, iLevel, csr.apSegment, csr.nSegment
187203 assert( pCsr->nSegment==0 );
187213 pCsr->nSegment++;
187999 sqlite3_bind_int64(pLeafEst, 2, pCsr->nSegment);
188300 for(i=pCsr->nSegment-1; i>=0 && rc==SQLITE_OK; i--){
188306 for(j=0; ALWAYS(j<pCsr->nSegment); j++){
188310 assert( j<pCsr->nSegment && pSeg->iIdx==i );
188330 if( rc==SQLITE_OK && nRem!=pCsr->nSegment ){
188558 if( SQLITE_OK==rc && pCsr->nSegment==nSeg
199918 int nSegment; /* Number of segments */
199944 pSeg = p->aSegment + p->nSegment;
199945 p->nSegment++;
200103 p->nEvent = p->nSegment = 0;
223931 int nSegment; /* Total segments in this structure */
224497 int nSegment = 0;
224508 i += fts5GetVarint32(&pData[i], nSegment);
224510 || nSegment>FTS5_MAX_SEGMENT || nSegment<0
224523 pRet->nSegment = nSegment;
224540 nSegment -= nTotal;
224563 if( nSegment!=0 && rc==SQLITE_OK ) rc = FTS5_CORRUPT;
224702 assert_nc( p->pStruct->nSegment==pTest->nSegment );
224740 int nSegment = 0; /* Total number of segments */
224744 nSegment += pStruct->aLevel[iLvl].nSeg;
224748 return nSegment;
224776 assert( pStruct->nSegment==fts5StructureCountSegments(pStruct) );
224787 fts5BufferSafeAppendVarint(&buf, pStruct->nSegment);
227048 int nSegment, /* Number of segments to merge (iLevel>=0) */
227062 assert( pStruct->nSegment==fts5StructureCountSegments(pStruct) );
227063 nSeg = pStruct->nSegment;
227066 nSeg = MIN(pStruct->aLevel[iLevel].nSeg, nSegment);
227246 if( pStruct->nSegment>=FTS5_MAX_SEGMENT ){
227935 pStruct->nSegment++;
228007 pStruct->nSegment -= nInput;
228012 pStruct->nSegment--;
228306 pStruct->nSegment++;
228335 int nSeg = pStruct->nSegment;
228381 pNew->nSegment = pLvl->nSeg = nSeg;
228405 assert( pNew==0 || pNew->nSegment>0 );