Lines Matching refs:file
79 bool IsCacheFile(const std::string& file) { in IsCacheFile() argument
83 size_t pos = file.find("."); in IsCacheFile()
88 std::string suffix = file.substr(pos); in IsCacheFile()
102 for (auto file : files) { in CleanupCacheFolder() local
103 if (IsCacheFile(file)) { in CleanupCacheFolder()
105 Info(opt_.log, "Removing file %s.", file.c_str()); in CleanupCacheFolder()
106 status = opt_.env->DeleteFile(folder + "/" + file); in CleanupCacheFolder()
108 Error(opt_.log, "Error deleting file %s. %s", file.c_str(), in CleanupCacheFolder()
113 ROCKS_LOG_DEBUG(opt_.log, "Skipping file %s", file.c_str()); in CleanupCacheFolder()
279 BlockCacheFile* const file = metadata_.Lookup(lba.cache_id_); in Lookup() local
280 if (!file) { in Lookup()
288 assert(file->refs_); in Lookup()
294 status = file->Read(lba, &blk_key, &blk_val, scratch.get()); in Lookup()
295 --file->refs_; in Lookup()