]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
messages/MPGStats: print seq instead of tid
authorKefu Chai <kchai@redhat.com>
Sat, 1 Aug 2020 10:07:35 +0000 (18:07 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 1 Aug 2020 10:07:37 +0000 (18:07 +0800)
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>
src/messages/MPGStats.h

index 944e536f99542909eb1a5bc2feecef4c39ea915a..576e9c51ee2002e4499614640c99fb9c6e063f9e 100644 (file)
@@ -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 {