From 4f775a7267e4a50bc4807179f7935f21c7b3e7f4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 16 Jun 2017 17:01:05 -0400 Subject: [PATCH] mon/MgrStatMonitor: print PGMapDigest summary on receipt Useful for debugging. Signed-off-by: Sage Weil --- src/mon/MgrStatMonitor.cc | 1 + src/mon/PGMap.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mon/MgrStatMonitor.cc b/src/mon/MgrStatMonitor.cc index a408f54cf1bf6..df92265d30797 100644 --- a/src/mon/MgrStatMonitor.cc +++ b/src/mon/MgrStatMonitor.cc @@ -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; diff --git a/src/mon/PGMap.h b/src/mon/PGMap.h index 805930ea1f4d3..6d58e6b2546d7 100644 --- a/src/mon/PGMap.h +++ b/src/mon/PGMap.h @@ -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; } -- 2.39.5