From: John Spray Date: Tue, 1 Aug 2017 08:54:21 +0000 (-0400) Subject: mon: fix log message on mds rank stop X-Git-Tag: ses5-milestone10~3^2~21^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1469cac02bcf325497e6427288cacaabf7d444a3;p=ceph.git mon: fix log message on mds rank stop Signed-off-by: John Spray --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index f56fdbc1f672..7c6995947c8c 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -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