]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix MDS health status from peons 2990/head
authorJohn Spray <john.spray@redhat.com>
Mon, 24 Nov 2014 11:00:25 +0000 (11:00 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 24 Nov 2014 17:22:42 +0000 (17:22 +0000)
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 <john.spray@redhat.com>
(cherry picked from commit 0c33930e3a90f3873b7c7b18ff70dec2894fce29)

Conflicts:
src/mon/MDSMonitor.cc

src/mon/MDSMonitor.cc

index fe6fe23d97430da4c48ee26879c41c895b54a1cf..9e789b7ec6e66f70a7957221f739859302aae6c9 100644 (file)
@@ -577,8 +577,8 @@ void MDSMonitor::get_health(list<pair<health_status_t, string> >& summary,
   mdsmap.get_health(summary, detail);
 
   // For each MDS GID...
-  for (std::map<uint64_t, MDSMap::mds_info_t>::const_iterator i = pending_mdsmap.mds_info.begin();
-      i != pending_mdsmap.mds_info.end(); ++i) {
+  for (std::map<uint64_t, MDSMap::mds_info_t>::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);