MCPcopy Create free account
hub / github.com/ElementsProject/elements / Lookup

Method Lookup

src/leveldb/util/cache.cc:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252Cache::Handle* LRUCache::Lookup(const Slice& key, uint32_t hash) {
253 MutexLock l(&mutex_);
254 LRUHandle* e = table_.Lookup(key, hash);
255 if (e != nullptr) {
256 Ref(e);
257 }
258 return reinterpret_cast<Cache::Handle*>(e);
259}
260
261void LRUCache::Release(Cache::Handle* handle) {
262 MutexLock l(&mutex_);

Callers 3

BlockReaderMethod · 0.45
LookupMethod · 0.45
FindTableMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected