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>
return ObjectMapIterator();
}
+ virtual KeyValueDB *get_db() { return nullptr; }
ObjectMap(CephContext* cct) : cct(cct) {}
virtual ~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
*/