| /sqlite-3.40.0/ext/lsm1/ |
| H A D | lsm_log.c | 513 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 D | lsm_win32.c | 517 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 D | lsm_unix.c | 250 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 D | lsm_main.c | 127 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 D | lsm_tree.c | 355 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 D | lsm_sorted.c | 5304 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 D | lsmtest_mem.c | 109 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 D | fts3_write.c | 2052 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 D | vdbesort.c | 1775 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 D | pcache1.c | 1236 int sqlite3PcacheReleaseMemory(int nReq){ in sqlite3PcacheReleaseMemory() argument 1243 while( (nReq<0 || nFree<nReq) in sqlite3PcacheReleaseMemory()
|
| H A D | wal.c | 2109 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 D | test_session.c | 736 int nReq = *pnData; /* Bytes of data requested */ in testStreamInput() local 747 if( nRet>nReq ) nRet = nReq; in testStreamInput()
|
| H A D | sqlite3session.c | 1999 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 D | zipfile.c | 1927 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 D | fts5_index.c | 4114 int nReq = p->pConfig->pgsz - pPage->buf.n - pPage->pgidx.n; in fts5WriteAppendPoslistData() local 4116 while( nCopy<nReq ){ in fts5WriteAppendPoslistData()
|