f->close_section();
}
- void osd_stat_t::encode(bufferlist &bl, uint64_t features) const
+ void osd_stat_t::encode(ceph::buffer::list &bl, uint64_t features) const
{
- ENCODE_START(10, 2, bl);
+ ENCODE_START(11, 2, bl);
//////// for compatibility ////////
int64_t kb = statfs.kb();
f->dump_int("num_objects_manifest", num_objects_manifest);
f->dump_int("num_omap_bytes", num_omap_bytes);
f->dump_int("num_omap_keys", num_omap_keys);
+ f->dump_int("num_objects_repaired", num_objects_repaired);
}
- void object_stat_sum_t::encode(bufferlist& bl) const
+ void object_stat_sum_t::encode(ceph::buffer::list& bl) const
{
- ENCODE_START(19, 14, bl);
+ ENCODE_START(20, 14, bl);
#if defined(CEPH_LITTLE_ENDIAN)
bl.append((char *)(&num_bytes), sizeof(object_stat_sum_t));
#else
ENCODE_FINISH(bl);
}
- void object_stat_sum_t::decode(bufferlist::const_iterator& bl)
+ void object_stat_sum_t::decode(ceph::buffer::list::const_iterator& bl)
{
bool decode_finish = false;
- DECODE_START(19, bl); // make sure to also update fast decode below
+ DECODE_START(20, bl); // make sure to also update fast decode below
#if defined(CEPH_LITTLE_ENDIAN)
if (struct_v >= 19) { // this must match newest decode version
bl.copy(sizeof(object_stat_sum_t), (char*)(&num_bytes));
#define PG_STATE_SNAPTRIM_ERROR (1ULL << 29) // error stopped trimming snaps
#define PG_STATE_FORCED_RECOVERY (1ULL << 30) // force recovery of this pg before any other
#define PG_STATE_FORCED_BACKFILL (1ULL << 31) // force backfill of this pg before any other
+#define PG_STATE_FAILED_REPAIR (1ULL << 32) // A repair failed to fix all errors
std::string pg_state_string(uint64_t state);
- std::string pg_vector_string(const vector<int32_t> &a);
+ std::string pg_vector_string(const std::vector<int32_t> &a);
boost::optional<uint64_t> pg_string_state(const std::string& state);
*/
struct osd_stat_t {
store_statfs_t statfs;
- vector<int> hb_peers;
+ std::vector<int> hb_peers;
int32_t snap_trim_queue_len, num_snap_trimming;
+ uint64_t num_shards_repaired;
pow2_hist_t op_queue_age_hist;