Skip to content

Commit

Permalink
Merge pull request ceph#8908 from jcsp/wip-15705
Browse files Browse the repository at this point in the history
mds: fix mdsmap print_summary with standby replays

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
  • Loading branch information
gregsfortytwo committed May 19, 2016
2 parents cba7fa2 + 899a16e commit d514a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/mds/FSMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ void FSMap::print_summary(Formatter *f, ostream *out)

const fs_cluster_id_t fscid = mds_roles.at(info.global_id);

if (info.rank != MDS_RANK_NONE) {
if (info.rank != MDS_RANK_NONE &&
info.state != MDSMap::STATE_STANDBY_REPLAY) {
if (f) {
f->open_object_section("mds");
f->dump_unsigned("filesystem_id", fscid);
Expand Down
2 changes: 1 addition & 1 deletion src/mds/MDSMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void MDSMap::print_summary(Formatter *f, ostream *out) const
if (p.second.laggy())
s += "(laggy or crashed)";

if (p.second.rank >= 0) {
if (p.second.rank >= 0 && p.second.state != MDSMap::STATE_STANDBY_REPLAY) {
if (f) {
f->open_object_section("mds");
f->dump_unsigned("rank", p.second.rank);
Expand Down

0 comments on commit d514a48

Please sign in to comment.