This way, we don't need cyan_store.h to get CollectionRef
Signed-off-by: Samuel Just <sjust@redhat.com>
void decode(bufferlist::const_iterator& p);
};
+using CollectionRef = boost::intrusive_ptr<Collection>;
+
}
std::move(objects), next);
}
-CyanStore::CollectionRef CyanStore::create_new_collection(const coll_t& cid)
+CollectionRef CyanStore::create_new_collection(const coll_t& cid)
{
auto c = new Collection{cid};
return new_coll_map[cid] = c;
}
-CyanStore::CollectionRef CyanStore::open_collection(const coll_t& cid)
+CollectionRef CyanStore::open_collection(const coll_t& cid)
{
auto cp = coll_map.find(cid);
if (cp == coll_map.end())
#include <seastar/core/future.hh>
+#include "crimson/os/cyan_collection.h"
#include "osd/osd_types.h"
#include "include/uuid.h"
// a just-enough store for reading/writing the superblock
class CyanStore {
- using CollectionRef = boost::intrusive_ptr<Collection>;
const std::string path;
std::unordered_map<coll_t, CollectionRef> coll_map;
std::map<coll_t,CollectionRef> new_coll_map;