Home
last modified time | relevance | path

Searched refs:block_cache (Results 1 – 11 of 11) sorted by relevance

/leveldb-1.20/table/
H A Dtable.cc79 rep->cache_id = (options.block_cache ? options.block_cache->NewId() : 0); in Open()
168 Cache* block_cache = table->rep_->options.block_cache; in BlockReader() local
180 if (block_cache != NULL) { in BlockReader()
185 cache_handle = block_cache->Lookup(key); in BlockReader()
187 block = reinterpret_cast<Block*>(block_cache->Value(cache_handle)); in BlockReader()
193 cache_handle = block_cache->Insert( in BlockReader()
212 iter->RegisterCleanup(&ReleaseBlock, block_cache, cache_handle); in BlockReader()
/leveldb-1.20/util/
H A Doptions.cc21 block_cache(NULL), in Options()
/leveldb-1.20/include/leveldb/
H A Doptions.h98 Cache* block_cache; member
/leveldb-1.20/db/
H A Drepair.cc54 owns_cache_(options_.block_cache != options.block_cache), in Repairer()
66 delete options_.block_cache; in ~Repairer()
H A Dautocompact_test.cc23 options_.block_cache = tiny_cache_; in AutoCompactTest()
H A Ddb_impl.cc111 if (result.block_cache == NULL) { in SanitizeOptions()
112 result.block_cache = NewLRUCache(8 << 20); in SanitizeOptions()
124 owns_cache_(options_.block_cache != raw_options.block_cache), in DBImpl()
173 delete options_.block_cache; in ~DBImpl()
1431 size_t total_usage = options_.block_cache->TotalCharge(); in GetProperty()
H A Dcorruption_test.cc38 options_.block_cache = tiny_cache_; in CorruptionTest()
H A Dfault_injection_test.cc379 options_.block_cache = tiny_cache_; in FaultInjectionTest()
H A Dc.cc438 opt->rep.block_cache = c->rep; in leveldb_options_set_cache()
H A Ddb_bench.cc714 options.block_cache = cache_; in Open()
H A Ddb_test.cc1715 options.block_cache = NewLRUCache(0); // Prevent cache hits in TEST()
1754 delete options.block_cache; in TEST()