mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
os/ObjectMap: add get_db() accessor
This is just to let us get at the underlying KeyValueDB for DBObjectMap. It is not really better or worse than adding accessors for things like GetEstimatedSize() to ObjectMap. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
13295a3883
commit
6c82e66dde
@ -162,6 +162,7 @@ public:
|
||||
return ObjectMapIterator();
|
||||
}
|
||||
|
||||
virtual KeyValueDB *get_db() { return nullptr; }
|
||||
|
||||
ObjectMap(CephContext* cct) : cct(cct) {}
|
||||
virtual ~ObjectMap() {}
|
||||
|
@ -58,6 +58,8 @@ class DBObjectMap : public ObjectMap {
|
||||
public:
|
||||
boost::scoped_ptr<KeyValueDB> db;
|
||||
|
||||
KeyValueDB *get_db() override { return db.get(); }
|
||||
|
||||
/**
|
||||
* Serializes access to next_seq as well as the in_use set
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user