From 0c33930e3a90f3873b7c7b18ff70dec2894fce29 Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 24 Nov 2014 11:00:25 +0000 Subject: [PATCH] mon: fix MDS health status from peons The health data was there, but we were attempting to enumerate MDS GIDs from pending_mdsmap (empty on peons) instead of mdsmap (populated from paxos updates) Fixes: #10151 Backport: giant Signed-off-by: John Spray --- src/mon/MDSMonitor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 9e91a8904e70..babf5f6ed2d9 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -577,8 +577,8 @@ void MDSMonitor::get_health(list >& summary, mdsmap.get_health(summary, detail); // For each MDS GID... - for (std::map::const_iterator i = pending_mdsmap.mds_info.begin(); - i != pending_mdsmap.mds_info.end(); ++i) { + for (std::map::const_iterator i = mdsmap.mds_info.begin(); + i != mdsmap.mds_info.end(); ++i) { // Decode MDSHealth bufferlist bl; mon->store->get(MDS_HEALTH_PREFIX, stringify(i->first), bl); -- 2.47.3