Lines Matching refs:nMax

49824   int nMax, nBuf, nDir, nLen;
49836 nMax = pVfs->mxPathname; nBuf = nMax + 2;
49847 nDir = nMax - (nPre + 15);
49861 sqlite3_snprintf(nMax, zBuf, "%s", sqlite3_temp_directory);
49904 sqlite3_snprintf(nMax, zBuf, "%s", zDir);
49910 zConverted = sqlite3MallocZero( nMax+1 );
49918 zConverted, nMax+1)<0 ){
49937 sqlite3_snprintf(nMax, zBuf, "%s", zUtf8);
49949 LPWSTR zWidePath = sqlite3MallocZero( nMax*sizeof(WCHAR) );
49955 if( osGetTempPathW(nMax, zWidePath)==0 ){
49964 sqlite3_snprintf(nMax, zBuf, "%s", zMulti);
49977 char *zMbcsPath = sqlite3MallocZero( nMax );
49983 if( osGetTempPathA(nMax, zMbcsPath)==0 ){
49991 sqlite3_snprintf(nMax, zBuf, "%s", zUtf8);
53694 unsigned int nMaxPage; /* Sum of nMax for purgeable caches */
53712 ** cache is created and are never changed thereafter. nMax may be
53714 ** The PGroup mutex must be held when accessing nMax.
53723 unsigned int nMax; /* Configured "cache_size" value */
53724 unsigned int n90pct; /* nMax*9/10 */
53840 if( pCache->nMax<3 ) return 0;
53847 if( szBulk > pCache->szAlloc*(i64)pCache->nMax ){
53848 szBulk = pCache->szAlloc*(i64)pCache->nMax;
54348 static void pcache1Cachesize(sqlite3_pcache *p, int nMax){
54351 assert( nMax>=0 );
54355 n = (u32)nMax;
54356 if( n > 0x7fff0000 - pGroup->nMaxPage + pCache->nMax ){
54357 n = 0x7fff0000 - pGroup->nMaxPage + pCache->nMax;
54359 pGroup->nMaxPage += (n - pCache->nMax);
54361 pCache->nMax = n;
54362 pCache->n90pct = pCache->nMax*9/10;
54421 assert( pCache->n90pct == pCache->nMax*9/10 );
54436 && ((pCache->nPage+1>=pCache->nMax) || pcache1UnderMemoryPressure(pCache))
54506 ** PCache1.nMax, or
54509 ** the sum of nMax for all purgeable caches, less the sum of
54516 ** PCache1.nMax, or
54519 ** already equal to or greater than the sum of nMax for all
54708 assert( pCache->bPurgeable || (pCache->nMax==0 && pCache->nMin==0) );
54711 assert( pGroup->nMaxPage >= pCache->nMax );
54712 pGroup->nMaxPage -= pCache->nMax;
65583 ** If the WAL file is currently larger than nMax bytes in size, truncate
65584 ** it to exactly nMax bytes. If an error occurs while doing so, ignore it.
65586 static void walLimitSize(Wal *pWal, i64 nMax){
65591 if( rx==SQLITE_OK && (sz > nMax ) ){
65592 rx = sqlite3OsTruncate(pWal->pWalFd, nMax);
177779 /* sqlite3_test_control(SQLITE_TESTCTRL_SORTER_MMAP, db, nMax); */
230089 ** Then, for each level from 0 to nMax:
234555 ** list nMax bytes or less in size.
234557 static int fts5PoslistPrefix(const u8 *aBuf, int nMax){
234561 if( ret<nMax ){
234564 if( (ret + i) > nMax ) break;