osd_stat.seq is a monotonic increasing sequence number which marks
the version of the of the report. since we don't use the tid to track
a MPGStats message and its MPGStatsAck message, it's more interesting to
us to print the sequence id. we use it to verify if a pg_stats is
flushed or not from a certain OSD.
Signed-off-by: Kefu Chai <kchai@redhat.com>
public:
std::string_view get_type_name() const override { return "pg_stats"; }
void print(std::ostream& out) const override {
- out << "pg_stats(" << pg_stat.size() << " pgs tid " << get_tid() << " v " << version << ")";
+ out << "pg_stats(" << pg_stat.size() << " pgs seq " << osd_stat.seq << " v " << version << ")";
}
void encode_payload(uint64_t features) override {