Home
last modified time | relevance | path

Searched refs:nReq (Results 1 – 15 of 15) sorted by relevance

/sqlite-3.40.0/ext/lsm1/
H A Dlsm_log.c513 int nReq, in jumpIfRequired() argument
599 int nReq; in logFlush() local
606 nReq = 9; in logFlush()
608 rc = jumpIfRequired(pDb, pLog, nReq, 0); in logFlush()
693 rc = lsmStringExtend(&pLog->buf, nReq); in lsmLogWrite()
850 while( rc==LSM_OK && nReq>0 ){ in logReaderBlob()
880 nReq = 0; in logReaderBlob()
882 int nCopy = LSM_MIN(nAvail, nReq); in logReaderBlob()
883 if( nBlob==nReq ){ in logReaderBlob()
887 nReq -= nCopy; in logReaderBlob()
[all …]
H A Dlsm_win32.c517 int nReq; in lsmWin32OsFileid() local
526 *pnBuf = nReq; in lsmWin32OsFileid()
527 if( nReq>nBuf ) return LSM_OK; in lsmWin32OsFileid()
532 nReq = sizeof(fileInfo.dwVolumeSerialNumber); in lsmWin32OsFileid()
534 pBuf2 += nReq; in lsmWin32OsFileid()
535 nReq = sizeof(fileInfo.nFileIndexHigh); in lsmWin32OsFileid()
537 pBuf2 += nReq; in lsmWin32OsFileid()
538 nReq = sizeof(fileInfo.nFileIndexLow); in lsmWin32OsFileid()
645 lsm_i64 nReq = nNew * sz; in lsmWin32OsShmMap() local
673 if( fileSize.QuadPart<nReq ){ in lsmWin32OsShmMap()
[all …]
H A Dlsm_unix.c250 int nReq; in lsmPosixOsFullpath() local
268 nReq = nTmp + 1 + strlen(zName) + 1; in lsmPosixOsFullpath()
269 if( nReq<=nBuf ){ in lsmPosixOsFullpath()
276 nReq = strlen(zName)+1; in lsmPosixOsFullpath()
277 if( nReq<=nBuf ){ in lsmPosixOsFullpath()
282 *pnOut = nReq; in lsmPosixOsFullpath()
293 int nReq; in lsmPosixOsFileid() local
299 *pnBuf = nReq; in lsmPosixOsFileid()
300 if( nReq>nBuf ) return LSM_OK; in lsmPosixOsFileid()
401 if( sStat.st_size<nReq ){ in lsmPosixOsShmMap()
[all …]
H A Dlsm_main.c127 int nReq = 0; in getFullpathname() local
131 nAlloc = nReq; in getFullpathname()
132 rc = pEnv->xFullpath(pEnv, zRel, zAlloc, &nReq); in getFullpathname()
133 if( nReq>nAlloc ){ in getFullpathname()
134 zAlloc = lsmReallocOrFreeRc(pEnv, zAlloc, nReq, &rc); in getFullpathname()
136 }while( nReq>nAlloc && rc==LSM_OK ); in getFullpathname()
H A Dlsm_tree.c355 int nReq; /* Bytes of space required at pRet */ in treeShmkey() local
358 nReq = sizeof(TreeKey) + pRet->nKey; in treeShmkey()
360 nReq += pRet->nValue; in treeShmkey()
365 if( nAvail<nReq ){ in treeShmkey()
366 if( tblobGrow(pDb, pBlob, nReq, pRc)==0 ){ in treeShmkey()
371 int n = LSM_MIN(nAvail, nReq-nLoad); in treeShmkey()
375 if( nLoad==nReq ) break; in treeShmkey()
H A Dlsm_sorted.c5304 int nReq = (nPage>=0) ? (nPage-nWrite) : ((int)0x7FFFFFFF); in doLsmWork() local
5307 rc = doLsmSingleWork(pDb, 0, nMerge, nReq, &nThis, &bCkpt); in doLsmWork()
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest_mem.c109 int nReq; /* Total number of bytes requested */ in tmMalloc() local
112 nReq = BLOCK_HDR_SIZE + nByte + 4; in tmMalloc()
113 pNew = (TmBlockHdr *)pTm->xMalloc(nReq); in tmMalloc()
/sqlite-3.40.0/ext/fts3/
H A Dfts3_write.c2052 if( nReq<=p->nNodeSize || !pTree->zTerm ){ in fts3NodeAddTerm()
2054 if( nReq>p->nNodeSize ){ in fts3NodeAddTerm()
2063 pTree->aData = (char *)sqlite3_malloc64(nReq); in fts3NodeAddTerm()
2291 if( nData>0 && nData+nReq>p->nNodeSize ){ in fts3SegWriterAdd()
2329 pWriter->nLeafData += nReq; in fts3SegWriterAdd()
2334 if( nReq>pWriter->nSize ){ in fts3SegWriterAdd()
2335 char *aNew = sqlite3_realloc64(pWriter->aData, nReq); in fts3SegWriterAdd()
2338 pWriter->nSize = nReq; in fts3SegWriterAdd()
2340 assert( nData+nReq<=pWriter->nSize ); in fts3SegWriterAdd()
2867 if( nReq>pCsr->nBuffer ){ in fts3GrowSegReaderBuffer()
[all …]
/sqlite-3.40.0/src/
H A Dvdbesort.c1775 int nReq; /* Bytes of memory required */ in sqlite3VdbeSorterWrite() local
1808 nReq = pVal->n + sizeof(SorterRecord); in sqlite3VdbeSorterWrite()
1812 bFlush = pSorter->iMemory && (pSorter->iMemory+nReq) > pSorter->mxPmaSize; in sqlite3VdbeSorterWrite()
1833 int nMin = pSorter->iMemory + nReq; in sqlite3VdbeSorterWrite()
1855 pSorter->iMemory += ROUND8(nReq); in sqlite3VdbeSorterWrite()
1860 pNew = (SorterRecord *)sqlite3Malloc(nReq); in sqlite3VdbeSorterWrite()
H A Dpcache1.c1236 int sqlite3PcacheReleaseMemory(int nReq){ in sqlite3PcacheReleaseMemory() argument
1243 while( (nReq<0 || nFree<nReq) in sqlite3PcacheReleaseMemory()
H A Dwal.c2109 i64 nReq = ((i64)mxPage * szPage); in walCheckpoint() local
2113 if( rc==SQLITE_OK && nSize<nReq ){ in walCheckpoint()
2114 if( (nSize+65536+(i64)pWal->hdr.mxFrame*szPage)<nReq ){ in walCheckpoint()
2121 sqlite3OsFileControlHint(pWal->pDbFd, SQLITE_FCNTL_SIZE_HINT,&nReq); in walCheckpoint()
/sqlite-3.40.0/ext/session/
H A Dtest_session.c736 int nReq = *pnData; /* Bytes of data requested */ in testStreamInput() local
747 if( nRet>nReq ) nRet = nReq; in testStreamInput()
H A Dsqlite3session.c1999 i64 nReq = p->nBuf + nByte; in sessionBufferGrow() local
2000 if( *pRc==SQLITE_OK && nReq>p->nAlloc ){ in sessionBufferGrow()
2006 }while( nNew<nReq ); in sessionBufferGrow()
2015 if( nNew<nReq ){ in sessionBufferGrow()
/sqlite-3.40.0/ext/misc/
H A Dzipfile.c1927 int nReq = pBuf->n + nByte; in zipfileBufferGrow() local
1929 while( nNew<nReq ) nNew = nNew*2; in zipfileBufferGrow()
/sqlite-3.40.0/ext/fts5/
H A Dfts5_index.c4114 int nReq = p->pConfig->pgsz - pPage->buf.n - pPage->pgidx.n; in fts5WriteAppendPoslistData() local
4116 while( nCopy<nReq ){ in fts5WriteAppendPoslistData()