Lines Matching refs:nMax
52286 i64 nMax, nBuf, nDir, nLen;
52298 nMax = pVfs->mxPathname;
52299 nBuf = 2 + (i64)nMax;
52310 nDir = nMax - (nPre + 15);
52324 sqlite3_snprintf(nMax, zBuf, "%s", sqlite3_temp_directory);
52367 sqlite3_snprintf(nMax, zBuf, "%s", zDir);
52380 LPWSTR zWidePath = sqlite3MallocZero( nMax*sizeof(WCHAR) );
52386 if( osGetTempPathW(nMax, zWidePath)==0 ){
52395 sqlite3_snprintf(nMax, zBuf, "%s", zMulti);
52408 char *zMbcsPath = sqlite3MallocZero( nMax );
52414 if( osGetTempPathA(nMax, zMbcsPath)==0 ){
52422 sqlite3_snprintf(nMax, zBuf, "%s", zUtf8);
56268 unsigned int nMaxPage; /* Sum of nMax for purgeable caches */
56286 ** cache is created and are never changed thereafter. nMax may be
56288 ** The PGroup mutex must be held when accessing nMax.
56297 unsigned int nMax; /* Configured "cache_size" value */
56298 unsigned int n90pct; /* nMax*9/10 */
56410 if( pCache->nMax<3 ) return 0;
56417 if( szBulk > pCache->szAlloc*(i64)pCache->nMax ){
56418 szBulk = pCache->szAlloc*(i64)pCache->nMax;
56920 static void pcache1Cachesize(sqlite3_pcache *p, int nMax){
56923 assert( nMax>=0 );
56927 n = (u32)nMax;
56928 if( n > 0x7fff0000 - pGroup->nMaxPage + pCache->nMax ){
56929 n = 0x7fff0000 - pGroup->nMaxPage + pCache->nMax;
56931 pGroup->nMaxPage += (n - pCache->nMax);
56933 pCache->nMax = n;
56934 pCache->n90pct = pCache->nMax*9/10;
56993 assert( pCache->n90pct == pCache->nMax*9/10 );
57008 && ((pCache->nPage+1>=pCache->nMax) || pcache1UnderMemoryPressure(pCache))
57078 ** PCache1.nMax, or
57081 ** the sum of nMax for all purgeable caches, less the sum of
57088 ** PCache1.nMax, or
57091 ** already equal to or greater than the sum of nMax for all
57280 assert( pCache->bPurgeable || (pCache->nMax==0 && pCache->nMin==0) );
57283 assert( pGroup->nMaxPage >= pCache->nMax );
57284 pGroup->nMaxPage -= pCache->nMax;
68256 ** If the WAL file is currently larger than nMax bytes in size, truncate
68257 ** it to exactly nMax bytes. If an error occurs while doing so, ignore it.
68259 static void walLimitSize(Wal *pWal, i64 nMax){
68264 if( rx==SQLITE_OK && (sz > nMax ) ){
68265 rx = sqlite3OsTruncate(pWal->pWalFd, nMax);
187161 /* sqlite3_test_control(SQLITE_TESTCTRL_SORTER_MMAP, db, nMax); */
244358 ** Then, for each level from 0 to nMax:
249293 ** list nMax bytes or less in size.
249295 static int fts5PoslistPrefix(const u8 *aBuf, int nMax){
249299 if( ret<nMax ){
249302 if( (ret + i) > nMax ) break;