if (i->is_delete()) continue;
bufferlist bv;
- int r = store->getattr(coll, i->soid, OI_ATTR, bv);
+ int r = store->getattr(
+ coll,
+ ghobject_t(i->soid, ghobject_t::NO_GEN, info.pgid.shard),
+ OI_ATTR,
+ bv);
if (r >= 0) {
object_info_t oi(bv);
if (oi.version < i->version) {
if (did.count(i->second)) continue;
did.insert(i->second);
bufferlist bv;
- int r = store->getattr(coll, i->second, OI_ATTR, bv);
+ int r = store->getattr(
+ coll,
+ ghobject_t(i->second, ghobject_t::NO_GEN, info.pgid.shard),
+ OI_ATTR,
+ bv);
if (r >= 0) {
object_info_t oi(bv);
/**