summaryrefslogtreecommitdiffstats
path: root/src/os/ObjectMap.h
diff options
context:
space:
mode:
authorliuchang0812 <liuchang0812@gmail.com>2017-06-30 10:50:53 +0200
committerliuchang0812 <liuchang0812@gmail.com>2017-07-13 16:06:35 +0200
commiteb5723d3abd4e1b6caec477090761d7919efc7bd (patch)
tree633d152cb95ddcf3dca3e3fefbcf20597f74402e /src/os/ObjectMap.h
parentMerge pull request #16317 from tchaikov/wip-0-osd-is-not-an-error (diff)
downloadceph-eb5723d3abd4e1b6caec477090761d7919efc7bd.tar.xz
ceph-eb5723d3abd4e1b6caec477090761d7919efc7bd.zip
os: export compact interface in ObjectStore and ObjectMap
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
Diffstat (limited to 'src/os/ObjectMap.h')
-rw-r--r--src/os/ObjectMap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/ObjectMap.h b/src/os/ObjectMap.h
index 68341628d2a..67a5780ae8c 100644
--- a/src/os/ObjectMap.h
+++ b/src/os/ObjectMap.h
@@ -154,6 +154,8 @@ public:
virtual int check(std::ostream &out, bool repair = false) { return 0; }
+ virtual void compact() {}
+
typedef KeyValueDB::GenericIteratorImpl ObjectMapIteratorImpl;
typedef ceph::shared_ptr<ObjectMapIteratorImpl> ObjectMapIterator;
virtual ObjectMapIterator get_iterator(const ghobject_t &oid) {