• Home
  • Raw
  • Download

Lines Matching refs:nFree

21463   u32 nFree = countLookasideSlots(db->lookaside.pFree);  in sqlite3LookasideUsed()  local
21466 nFree += countLookasideSlots(db->lookaside.pSmallFree); in sqlite3LookasideUsed()
21469 return db->lookaside.nSlot - (nInit+nFree); in sqlite3LookasideUsed()
50923 int nFree = 0;
50929 while( (nReq<0 || nFree<nReq)
50933 nFree += pcache1MemSize(p->page.pBuf);
50935 nFree += sqlite3MemSize(p);
50943 return nFree;
63636 int nFree; /* Number of free bytes on the page. -1 for unknown */
65869 assert( pPage->nFree>=0 );
65870 if( data[hdr+7]+cbrk-iCellFirst!=pPage->nFree ){
65975 assert( pPage->nFree>=nByte );
66026 assert( pPage->nFree>=0 );
66027 rc = defragmentPage(pPage, MIN(4, pPage->nFree - (2+nByte)));
66151 pPage->nFree += iOrigSize;
66225 int nFree; /* Number of unused bytes on the page */
66237 assert( pPage->nFree<0 );
66254 nFree = data[hdr+7] + top; /* Init nFree to non-freeblock free space */
66270 nFree = nFree + size;
66291 if( nFree>usableSize || nFree<iCellFirst ){
66294 pPage->nFree = (u16)(nFree - iCellFirst);
66384 pPage->nFree = -1; /* Indicate that this value is yet uncomputed */
66415 pPage->nFree = (u16)(pBt->usableSize - first);
68202 static Pgno finalDbSize(BtShared *pBt, Pgno nOrig, Pgno nFree){
68208 nPtrmap = (nFree-nOrig+PTRMAP_PAGENO(pBt, nOrig)+nEntry)/nEntry;
68209 nFin = nOrig - nFree - nPtrmap;
68238 Pgno nFree = get4byte(&pBt->pPage1->aData[36]);
68239 Pgno nFin = finalDbSize(pBt, nOrig, nFree);
68243 }else if( nFree>0 ){
68280 Pgno nFree; /* Number of pages on the freelist initially */
68293 nFree = get4byte(&pBt->pPage1->aData[36]);
68294 nFin = finalDbSize(pBt, nOrig, nFree);
68302 if( (rc==SQLITE_DONE || rc==SQLITE_OK) && nFree>0 ){
70592 u32 nFree; /* Initial number of pages on free-list */
70611 nFree = get4byte(&pPage1->aData[36]);
70612 put4byte(&pPage1->aData[36], nFree+1);
70641 if( nFree!=0 ){
71011 assert( pPage->nFree>=0 );
71032 pPage->nFree = pPage->pBt->usableSize - pPage->hdrOffset
71037 pPage->nFree += 2;
71077 assert( pPage->nFree>=0 );
71078 if( pPage->nOverflow || sz+2>pPage->nFree ){
71117 pPage->nFree -= (u16)(2 + sz);
71639 assert( pPage->nFree>=0 );
71640 assert( pParent->nFree>=0 );
71670 pNew->nFree = pBt->usableSize - pNew->cellOffset - 2 - szCell;
71795 assert( pFrom->nFree>=iToHdr );
71919 assert( pParent->nFree>=0 );
71959 if( apOld[i]->nFree<0 ){
72174 assert( p->nFree>=0 );
72175 szNew[i] = usableSpace - p->nFree;
72547 apNew[iPg]->nFree = usableSpace-szNew[iPg];
72559 if( isRoot && pParent->nCell==0 && pParent->hdrOffset<=apNew[0]->nFree ){
72578 assert( apNew[0]->nFree ==
72745 if( NEVER(pPage->nFree<0) && btreeComputeFreeSpace(pPage) ) break;
72746 if( pPage->nOverflow==0 && pPage->nFree<=nMin ){
72774 if( rc==SQLITE_OK && pParent->nFree<0 ){
73126 if( pPage->nFree<0 ){
73290 if( pPage->nFree<0 && btreeComputeFreeSpace(pPage) ) return SQLITE_CORRUPT;
73303 || (pPage->nFree+cellSizePtr(pPage,pCell)+2)>(int)(pBt->usableSize*2/3)
73361 if( pLeaf->nFree<0 ){
79811 sqlite3_int64 nFree; /* Bytes of available memory */
79837 if( nByte <= p->nFree ){
79838 p->nFree -= nByte;
79839 pBuf = &p->pSpace[p->nFree];
79944 x.nFree = ROUNDDOWN8(pParse->szOpAlloc - n); /* Bytes of unused memory */
79945 assert( x.nFree>=0 );
79946 assert( EIGHT_BYTE_ALIGNMENT(&x.pSpace[x.nFree]) );
79994 x.nFree = x.nNeeded;