From: Kefu Chai Date: Sat, 1 Aug 2020 10:07:35 +0000 (+0800) Subject: messages/MPGStats: print seq instead of tid X-Git-Tag: v16.1.0~1530^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36401%2Fhead;p=ceph.git messages/MPGStats: print seq instead of tid 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 --- diff --git a/src/messages/MPGStats.h b/src/messages/MPGStats.h index 944e536f9954..576e9c51ee20 100644 --- a/src/messages/MPGStats.h +++ b/src/messages/MPGStats.h @@ -42,7 +42,7 @@ private: 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 {