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

Method ForceEvict

src/leveldb/persistent_cache/persistent_cache_impl.cc:245–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void PersistentCacheImpl::ForceEvict(const Slice& key) {
246 std::unique_ptr<CacheFile> file{metadata_.ForceEvict(key)};
247 if (file) {
248 assert(!file->refs_);
249 if (DeleteFileAndReleaseCache(file.get()).ok()) {
250 LEVELDB_LOG("Remove force evicted cache file: %s.", file->Path().c_str());
251 }
252 }
253}
254
255void PersistentCacheImpl::ForceEvict(CacheFile* file) { metadata_.ForceEvict(file); }
256

Callers 2

CloseMethod · 0.45
AbandonMethod · 0.45

Calls 3

okMethod · 0.45
getMethod · 0.45
PathMethod · 0.45

Tested by

no test coverage detected