osd: replace hb_out and hb_in with a single hb_peers
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
::encode(kb_avail, bl);
::encode(snap_trim_queue_len, bl);
::encode(num_snap_trimming, bl);
- ::encode(hb_in, bl);
- ::encode(hb_out, bl);
+ ::encode(hb_peers, bl);
+ ::encode((uint32_t)0, bl);
::encode(op_queue_age_hist, bl);
- ::encode(fs_perf_stat, bl);
+ ::encode(os_perf_stat, bl);
ENCODE_FINISH(bl);
}
l.kb_avail == r.kb_avail &&
l.snap_trim_queue_len == r.snap_trim_queue_len &&
l.num_snap_trimming == r.num_snap_trimming &&
- l.hb_in == r.hb_in &&
- l.hb_out == r.hb_out &&
+ l.hb_peers == r.hb_peers &&
l.op_queue_age_hist == r.op_queue_age_hist &&
- l.fs_perf_stat == r.fs_perf_stat;
+ l.os_perf_stat == r.os_perf_stat;
}
inline bool operator!=(const osd_stat_t& l, const osd_stat_t& r) {
return !(l == r);