Signed-off-by:Igor Fedotov <ifedotov@mirantis.com>
int trim(int max=-1);
};
- struct Collection {
+ struct Collection : public CollectionImpl {
KStore *store;
coll_t cid;
kstore_cnode_t cnode;
OnodeRef get_onode(const ghobject_t& oid, bool create);
+ const coll_t &get_cid() override {
+ return cid;
+ }
+
bool contains(const ghobject_t& oid) {
if (cid.is_meta())
return oid.hobj.pool == -1;
Collection(KStore *ns, coll_t c);
};
- typedef ceph::shared_ptr<Collection> CollectionRef;
+ typedef boost::intrusive_ptr<Collection> CollectionRef;
class OmapIteratorImpl : public ObjectMap::ObjectMapIteratorImpl {
CollectionRef c;