| 98 | } |
| 99 | |
| 100 | Status 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 |