MCPcopy Create free account
hub / github.com/baidu/tera / TryReadFromPersistentCache

Method TryReadFromPersistentCache

src/leveldb/table/persistent_cache_helper.cc:100–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100Status PersistentCacheHelper::TryReadFromPersistentCache(
101 const std::shared_ptr<PersistentCache> &p_cache, const Slice &key, uint64_t offset,
102 uint64_t length, Slice *contents, SstDataScratch *val) {
103 ReadLock _(&closing_file_rw_mutex_);
104 return p_cache->Read(key, offset, length, contents, val);
105}
106} // leveldb

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected