dout(10) << __func__ << ": not in cache " << hoid << dendl;
struct stat st;
int r = store->stat(
- coll,
+ hoid.is_temp() ? temp_coll : coll,
ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
&st);
ECUtil::HashInfo hinfo(ec_impl->get_chunk_count());
dout(10) << __func__ << ": found on disk, size " << st.st_size << dendl;
bufferlist bl;
r = store->getattr(
- coll,
+ hoid.is_temp() ? temp_coll : coll,
ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
ECUtil::get_hinfo_key(),
bl);
{
bufferptr bp;
int r = store->getattr(
- coll,
+ hoid.is_temp() ? temp_coll : coll,
ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
attr.c_str(),
bp);
map<string, bufferlist> *out)
{
return store->getattrs(
- coll,
+ hoid.is_temp() ? temp_coll : coll,
ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
*out);
}
ObjectStore::Transaction *t) {
map<string, bufferlist> to_set;
set<string> to_remove;
+ assert(!hoid.is_temp());
for (map<string, boost::optional<bufferlist> >::iterator i = old_attrs.begin();
i != old_attrs.end();
++i) {
const hobject_t &hoid,
uint64_t old_size,
ObjectStore::Transaction *t) {
+ assert(!hoid.is_temp());
t->truncate(
coll,
ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
const hobject_t &hoid,
version_t old_version,
ObjectStore::Transaction *t) {
+ assert(!hoid.is_temp());
t->remove(coll, hoid);
t->collection_move_rename(
coll,
void PGBackend::rollback_create(
const hobject_t &hoid,
ObjectStore::Transaction *t) {
+ assert(!hoid.is_temp());
t->remove(
coll,
ghobject_t(hoid, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard));
const hobject_t &hoid,
version_t old_version,
ObjectStore::Transaction *t) {
+ assert(!hoid.is_temp());
t->remove(
coll, ghobject_t(hoid, old_version, get_parent()->whoami_shard().shard));
}