]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix log message on mds rank stop
authorJohn Spray <john.spray@redhat.com>
Tue, 1 Aug 2017 08:54:21 +0000 (04:54 -0400)
committerJohn Spray <john.spray@redhat.com>
Tue, 1 Aug 2017 10:57:50 +0000 (06:57 -0400)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/MDSMonitor.cc

index f56fdbc1f67227535408362aab95ceb2bafc6e38..7c6995947c8cdec44d59761121ac8c78559359f8 100644 (file)
@@ -660,6 +660,13 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op)
             << "  standby_for_rank=" << m->get_standby_for_rank()
             << dendl;
     if (state == MDSMap::STATE_STOPPED) {
+      const auto fscid = pending_fsmap.mds_roles.at(gid);
+      auto fs = pending_fsmap.get_filesystem(fscid);
+      mon->clog->info() << info.human_name() << " finished "
+                        << "deactivating rank " << info.rank << " in filesystem "
+                        << fs->mds_map.fs_name << " (now has "
+                        << fs->mds_map.get_num_in_mds() << " ranks)";
+
       auto erased = pending_fsmap.stop(gid);
       erased.push_back(gid);
 
@@ -671,12 +678,7 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op)
         }
       }
 
-      auto fscid = pending_fsmap.mds_roles.at(gid);
-      auto fs = pending_fsmap.get_filesystem(fscid);
-      mon->clog->info() << info.human_name() << " finished "
-                        << "deactivating rank " << info.rank << " in filesystem "
-                        << fs->mds_map.fs_name << " (now has "
-                        << fs->mds_map.get_num_in_mds() << " ranks)";
+
     } else if (state == MDSMap::STATE_DAMAGED) {
       if (!mon->osdmon()->is_writeable()) {
         dout(4) << __func__ << ": DAMAGED from rank " << info.rank