• 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()
50907 int nFree = 0;
50913 while( (nReq<0 || nFree<nReq)
50917 nFree += pcache1MemSize(p->page.pBuf);
50919 nFree += sqlite3MemSize(p);
50927 return nFree;
63620 int nFree; /* Number of free bytes on the page. -1 for unknown */
65853 assert( pPage->nFree>=0 );
65854 if( data[hdr+7]+cbrk-iCellFirst!=pPage->nFree ){
65959 assert( pPage->nFree>=nByte );
66010 assert( pPage->nFree>=0 );
66011 rc = defragmentPage(pPage, MIN(4, pPage->nFree - (2+nByte)));
66135 pPage->nFree += iOrigSize;
66209 int nFree; /* Number of unused bytes on the page */
66221 assert( pPage->nFree<0 );
66238 nFree = data[hdr+7] + top; /* Init nFree to non-freeblock free space */
66254 nFree = nFree + size;
66275 if( nFree>usableSize || nFree<iCellFirst ){
66278 pPage->nFree = (u16)(nFree - iCellFirst);
66368 pPage->nFree = -1; /* Indicate that this value is yet uncomputed */
66399 pPage->nFree = (u16)(pBt->usableSize - first);
68186 static Pgno finalDbSize(BtShared *pBt, Pgno nOrig, Pgno nFree){
68192 nPtrmap = (nFree-nOrig+PTRMAP_PAGENO(pBt, nOrig)+nEntry)/nEntry;
68193 nFin = nOrig - nFree - nPtrmap;
68222 Pgno nFree = get4byte(&pBt->pPage1->aData[36]);
68223 Pgno nFin = finalDbSize(pBt, nOrig, nFree);
68227 }else if( nFree>0 ){
68264 Pgno nFree; /* Number of pages on the freelist initially */
68277 nFree = get4byte(&pBt->pPage1->aData[36]);
68278 nFin = finalDbSize(pBt, nOrig, nFree);
68286 if( (rc==SQLITE_DONE || rc==SQLITE_OK) && nFree>0 ){
70576 u32 nFree; /* Initial number of pages on free-list */
70595 nFree = get4byte(&pPage1->aData[36]);
70596 put4byte(&pPage1->aData[36], nFree+1);
70625 if( nFree!=0 ){
70995 assert( pPage->nFree>=0 );
71016 pPage->nFree = pPage->pBt->usableSize - pPage->hdrOffset
71021 pPage->nFree += 2;
71061 assert( pPage->nFree>=0 );
71062 if( pPage->nOverflow || sz+2>pPage->nFree ){
71101 pPage->nFree -= (u16)(2 + sz);
71623 assert( pPage->nFree>=0 );
71624 assert( pParent->nFree>=0 );
71654 pNew->nFree = pBt->usableSize - pNew->cellOffset - 2 - szCell;
71779 assert( pFrom->nFree>=iToHdr );
71903 assert( pParent->nFree>=0 );
71943 if( apOld[i]->nFree<0 ){
72158 assert( p->nFree>=0 );
72159 szNew[i] = usableSpace - p->nFree;
72531 apNew[iPg]->nFree = usableSpace-szNew[iPg];
72543 if( isRoot && pParent->nCell==0 && pParent->hdrOffset<=apNew[0]->nFree ){
72562 assert( apNew[0]->nFree ==
72729 if( NEVER(pPage->nFree<0) && btreeComputeFreeSpace(pPage) ) break;
72730 if( pPage->nOverflow==0 && pPage->nFree<=nMin ){
72758 if( rc==SQLITE_OK && pParent->nFree<0 ){
73110 if( pPage->nFree<0 ){
73274 if( pPage->nFree<0 && btreeComputeFreeSpace(pPage) ) return SQLITE_CORRUPT;
73287 || (pPage->nFree+cellSizePtr(pPage,pCell)+2)>(int)(pBt->usableSize*2/3)
73345 if( pLeaf->nFree<0 ){
79795 sqlite3_int64 nFree; /* Bytes of available memory */
79821 if( nByte <= p->nFree ){
79822 p->nFree -= nByte;
79823 pBuf = &p->pSpace[p->nFree];
79928 x.nFree = ROUNDDOWN8(pParse->szOpAlloc - n); /* Bytes of unused memory */
79929 assert( x.nFree>=0 );
79930 assert( EIGHT_BYTE_ALIGNMENT(&x.pSpace[x.nFree]) );
79978 x.nFree = x.nNeeded;