}
assert(p->shard_info->offset == p->offset);
p->shard_info->bytes = len;
- p->shard_info->extents = nn;
t->set(PREFIX_OBJ, p->key, bl);
p->dirty = false;
}
{
f->dump_unsigned("offset", offset);
f->dump_unsigned("bytes", bytes);
- f->dump_unsigned("extents", extents);
}
ostream& operator<<(ostream& out, const bluestore_onode_t::shard_info& si)
{
- return out << std::hex << "0x" << si.offset << "(0x" << si.bytes << " bytes, "
- << std::dec << si.extents << " extents)";
+ return out << std::hex << "0x" << si.offset << "(0x" << si.bytes << " bytes"
+ << std::dec << ")";
}
void bluestore_onode_t::dump(Formatter *f) const
struct shard_info {
uint32_t offset = 0; ///< logical offset for start of shard
uint32_t bytes = 0; ///< encoded bytes
- uint32_t extents = 0; ///< extents
DENC(shard_info, v, p) {
denc_varint(v.offset, p);
denc_varint(v.bytes, p);
- denc_varint(v.extents, p);
}
void dump(Formatter *f) const;
};