Lines Matching refs:cntNew
7884 int cntNew[NB+2]; /* Index in b.paCell[] of cell after i-th page */ in balance_nonroot() local
8170 cntNew[i] = cntOld[i]; in balance_nonroot()
8180 cntNew[k-1] = b.nCell; in balance_nonroot()
8182 sz = 2 + cachedCellSize(&b, cntNew[i]-1); in balance_nonroot()
8185 if( cntNew[i]<b.nCell ){ in balance_nonroot()
8186 sz = 2 + cachedCellSize(&b, cntNew[i]); in balance_nonroot()
8192 cntNew[i]--; in balance_nonroot()
8194 while( cntNew[i]<b.nCell ){ in balance_nonroot()
8195 sz = 2 + cachedCellSize(&b, cntNew[i]); in balance_nonroot()
8198 cntNew[i]++; in balance_nonroot()
8200 if( cntNew[i]<b.nCell ){ in balance_nonroot()
8201 sz = 2 + cachedCellSize(&b, cntNew[i]); in balance_nonroot()
8208 if( cntNew[i]>=b.nCell ){ in balance_nonroot()
8210 }else if( cntNew[i] <= (i>0 ? cntNew[i-1] : 0) ){ in balance_nonroot()
8233 r = cntNew[i-1] - 1; in balance_nonroot()
8246 cntNew[i-1] = r; in balance_nonroot()
8252 if( cntNew[i-1] <= (i>1 ? cntNew[i-2] : 0) ){ in balance_nonroot()
8265 assert( cntNew[0]>0 || (pParent->pgno==1 && pParent->nCell==0) || CORRUPT_DB); in balance_nonroot()
8352 apNew[0]->pgno, szNew[0], cntNew[0], in balance_nonroot()
8354 nNew>=2 ? cntNew[1] - cntNew[0] - !leafData : 0, in balance_nonroot()
8356 nNew>=3 ? cntNew[2] - cntNew[1] - !leafData : 0, in balance_nonroot()
8358 nNew>=4 ? cntNew[3] - cntNew[2] - !leafData : 0, in balance_nonroot()
8360 nNew>=5 ? cntNew[4] - cntNew[3] - !leafData : 0 in balance_nonroot()
8408 if( i==cntNew[iNew] ){ in balance_nonroot()
8441 j = cntNew[i]; in balance_nonroot()
8521 || cntOld[iPg-1]>=cntNew[iPg-1] /* Condition (1) is true */ in balance_nonroot()
8529 assert( iPg==0 || cntOld[iPg-1]>=cntNew[iPg-1] || abDone[iPg-1] ); in balance_nonroot()
8533 assert( cntNew[iPg]>=cntOld[iPg] || abDone[iPg+1] ); in balance_nonroot()
8537 nNewCell = cntNew[0]; in balance_nonroot()
8540 iNew = cntNew[iPg-1] + !leafData; in balance_nonroot()
8541 nNewCell = cntNew[iPg] - iNew; in balance_nonroot()