]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MgrStatMonitor: print PGMapDigest summary on receipt
authorSage Weil <sage@redhat.com>
Fri, 16 Jun 2017 21:01:05 +0000 (17:01 -0400)
committerSage Weil <sage@redhat.com>
Fri, 16 Jun 2017 21:01:05 +0000 (17:01 -0400)
Useful for debugging.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MgrStatMonitor.cc
src/mon/PGMap.h

index a408f54cf1bf6381f25d8dcf4106a78ed7203fbf..df92265d30797404c02534e89d51826704a4ed04 100644 (file)
@@ -187,6 +187,7 @@ bool MgrStatMonitor::prepare_report(MonOpRequestRef op)
   bufferlist bl = m->get_data();
   auto p = bl.begin();
   ::decode(pending_digest, p);
+  dout(10) << __func__ << " " << pending_digest << dendl;
   pending_health_summary.swap(m->health_summary);
   pending_health_detail.swap(m->health_detail);
   return true;
index 805930ea1f4d30b66fac1779f6d88f0bc19b684a..6d58e6b2546d75001a302d74711f555c12e1ac2b 100644 (file)
@@ -500,7 +500,7 @@ public:
 WRITE_CLASS_ENCODER_FEATURES(PGMap::Incremental)
 WRITE_CLASS_ENCODER_FEATURES(PGMap)
 
-inline ostream& operator<<(ostream& out, const PGMap& m) {
+inline ostream& operator<<(ostream& out, const PGMapDigest& m) {
   m.print_oneline_summary(NULL, &out);
   return out;
 }