} // namespace immutable_obj_cache
} // namespace ceph
-#endif
+#endif // CEPH_CACHE_CACHE_CLIENT_H
} // namespace immutable_obj_cache
} // namespace ceph
-#endif
+#endif // CEPH_CACHE_CACHE_CONTROLLER_H
} // namespace immutable_obj_cache
} // namespace ceph
-#endif
+#endif // CEPH_CACHE_SESSION_H
std::error_code ec;
if (efs::exists(m_cache_root_dir)) {
// remove all sub folders
- for(auto& p: efs::directory_iterator(m_cache_root_dir)) {
+ for (auto& p : efs::directory_iterator(m_cache_root_dir)) {
efs::remove_all(p.path());
}
} else {
private:
std::string get_cache_file_name(std::string pool_nspace, uint64_t pool_id,
uint64_t snap_id, std::string oid);
- std::string get_cache_file_path(std::string cache_file_name, bool mkdir = false);
+ std::string get_cache_file_path(std::string cache_file_name,
+ bool mkdir = false);
int evict_objects();
int do_promote(std::string pool_nspace, uint64_t pool_id,
uint64_t snap_id, std::string object_name);
std::string m_cache_root_dir;
};
-} // namespace ceph
-} // namespace immutable_obj_cache
-#endif
+} // namespace immutable_obje_cache
+} // ceph
+#endif // CEPH_CACHE_OBJECT_CACHE_STORE_H
CephContext* cct;
float m_watermark;
- uint64_t m_entry_count;
uint64_t m_max_inflight_ops;
uint64_t m_max_cache_size;
std::atomic<uint64_t> inflight_ops = 0;
std::unordered_map<std::string, Entry*> m_cache_map;
RWLock m_cache_map_lock;
- std::deque<Entry*> m_free_list;
-
std::atomic<uint64_t> m_cache_size;
LRU m_promoted_lru;
} // namespace immutable_obj_cache
} // namespace ceph
-#endif
+#endif // CEPH_CACHE_SOCKET_COMMON_H
} // namespace immutable_obj_cache
} // namespace ceph
-#endif
+#endif // CEPH_CACHE_TYPES_H
} // namespace immutable_obj_cache
} // namespace ceph
-#endif
+#endif // CEPH_CACHE_UTILS_H