summaryrefslogtreecommitdiffstats
path: root/src/tools/immutable_object_cache/Policy.h
diff options
context:
space:
mode:
authorshangdehao1 <dehao.shang@intel.com>2019-03-06 23:24:16 +0100
committerYuan Zhou <yuan.zhou@intel.com>2019-03-21 17:16:30 +0100
commit9cfd3594bc7632d8e693037add083270b489a835 (patch)
treedee0fcc96647df7c0e9149bb1d0525f93d5dff9d /src/tools/immutable_object_cache/Policy.h
parenttools: clean up data structure of immutable obj cache daemon (diff)
downloadceph-9cfd3594bc7632d8e693037add083270b489a835.tar.xz
ceph-9cfd3594bc7632d8e693037add083270b489a835.zip
tools: adjust code style of RO
Signed-off-by: Dehao Shang <dehao.shang@intel.com>
Diffstat (limited to 'src/tools/immutable_object_cache/Policy.h')
-rw-r--r--src/tools/immutable_object_cache/Policy.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tools/immutable_object_cache/Policy.h b/src/tools/immutable_object_cache/Policy.h
index cda8e69c917..3e3a0ef8787 100644
--- a/src/tools/immutable_object_cache/Policy.h
+++ b/src/tools/immutable_object_cache/Policy.h
@@ -16,18 +16,18 @@ typedef enum {
OBJ_CACHE_SKIP,
} cache_status_t;
-
class Policy {
-public:
- Policy(){}
- virtual ~Policy(){};
+ public:
+ Policy() {}
+ virtual ~Policy() {}
virtual cache_status_t lookup_object(std::string) = 0;
virtual int evict_entry(std::string) = 0;
- virtual void update_status(std::string, cache_status_t, uint64_t size=0) = 0;
+ virtual void update_status(std::string, cache_status_t,
+ uint64_t size = 0) = 0;
virtual cache_status_t get_status(std::string) = 0;
virtual void get_evict_list(std::list<std::string>* obj_list) = 0;
};
-} // namespace immutable_obj_cache
-} // namespace ceph
+} // namespace immutable_obj_cache
+} // namespace ceph
#endif