Searched refs:block_cache (Results 1 – 12 of 12) sorted by relevance
75 rep->cache_id = (options.block_cache ? options.block_cache->NewId() : 0); in Open()158 Cache* block_cache = table->rep_->options.block_cache; in BlockReader() local170 if (block_cache != NULL) { in BlockReader()175 cache_handle = block_cache->Lookup(key); in BlockReader()177 block = reinterpret_cast<Block*>(block_cache->Value(cache_handle)); in BlockReader()183 cache_handle = block_cache->Insert( in BlockReader()202 iter->RegisterCleanup(&ReleaseBlock, block_cache, cache_handle); in BlockReader()
59 u32 idx = block_alloc_.Alloc(&thr->block_cache); in AllocBlock()90 block_alloc_.Free(&thr->block_cache, idx & ~kFlagMask); in FreeRange()216 block_alloc_.FlushCache(&thr->block_cache); in OnThreadIdle()
379 DenseSlabAllocCache block_cache; member
21 block_cache(NULL), in Options()
98 Cache* block_cache; member
54 owns_cache_(options_.block_cache != options.block_cache), in Repairer()66 delete options_.block_cache; in ~Repairer()
23 options_.block_cache = tiny_cache_; in AutoCompactTest()
110 if (result.block_cache == NULL) { in SanitizeOptions()111 result.block_cache = NewLRUCache(8 << 20); in SanitizeOptions()123 owns_cache_(options_.block_cache != raw_options.block_cache), in DBImpl()173 delete options_.block_cache; in ~DBImpl()
38 options_.block_cache = tiny_cache_; in CorruptionTest()
438 opt->rep.block_cache = c->rep; in leveldb_options_set_cache()
694 options.block_cache = cache_; in Open()
1686 options.block_cache = NewLRUCache(0); // Prevent cache hits in TEST()1725 delete options.block_cache; in TEST()