OSD: add impl for filestore to get dbstatistics
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
return ObjectMapIterator();
}
+ virtual KeyValueDB *get_db() { return nullptr; }
- ObjectMap(CephContext* cct) : cct(cct) {}
+ ObjectMap(CephContext* cct, KeyValueDB *db) : cct(cct), db(db) {}
virtual ~ObjectMap() {}
};
*/
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
*/