collection default has pool(0), and NO_SHARD,
so the ghobject_t should have the same setting.
and ghobject_t default hash not within 1<<(32-4),
so set collection bits to be 0.
Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
}).then([this](auto coll_ref) {
coll = coll_ref;
CTransaction t;
- t.create_collection(coll_name, 4);
+ t.create_collection(coll_name, 0);
return seastore->do_transaction(
coll,
std::move(t));
auto ret = ghobject_t(
hobject_t(
sobject_t(ss.str(), CEPH_NOSNAP)));
- ret.set_shard(shard_id_t(0));
+ ret.set_shard(shard_id_t(shard_id_t::NO_SHARD));
ret.hobj.nspace = "asdf";
+ ret.hobj.pool = 0;
return ret;
}