bufferptr bp;
int r = store->getattr(
coll,
- hoid,
+ ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
attr.c_str(),
bp);
if (r >= 0 && out) {
{
return store->getattrs(
coll,
- hoid,
+ ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
*out);
}
if (i->second) {
to_set[i->first] = i->second.get();
} else {
- t->rmattr(coll, hoid, i->first);
+ t->rmattr(
+ coll,
+ ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
+ i->first);
}
}
t->setattrs(
const hobject_t &hoid,
uint64_t old_size,
ObjectStore::Transaction *t) {
- t->truncate(coll, hoid, old_size);
+ t->truncate(
+ coll,
+ ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
+ old_size);
}
void PGBackend::rollback_stash(
t->remove(coll, hoid);
t->collection_move_rename(
coll,
- ghobject_t(hoid, old_version, 0),
+ ghobject_t(hoid, old_version, get_parent()->whoami_shard().shard),
coll,
ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard));
}
void PGBackend::rollback_create(
const hobject_t &hoid,
ObjectStore::Transaction *t) {
- t->remove(coll, hoid);
+ t->remove(
+ coll,
+ ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard));
}
void PGBackend::trim_stashed_object(
const hobject_t &hoid,
version_t old_version,
ObjectStore::Transaction *t) {
- t->remove(coll, ghobject_t(hoid, old_version, 0));
+ t->remove(
+ coll, ghobject_t(hoid, old_version, get_parent()->whoami_shard().shard));
}