Merge pull request #13816 from batrick/i19201

mds: print rank as int

Reviewed-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
John Spray 2017-03-08 10:14:19 +00:00 committed by GitHub
commit 8bd12b2c14

View File

@ -173,9 +173,9 @@ void MDSDaemon::dump_status(Formatter *f)
f->open_object_section("status");
f->dump_stream("cluster_fsid") << monc->get_fsid();
if (mds_rank) {
f->dump_unsigned("whoami", mds_rank->get_nodeid());
f->dump_int("whoami", mds_rank->get_nodeid());
} else {
f->dump_unsigned("whoami", MDS_RANK_NONE);
f->dump_int("whoami", MDS_RANK_NONE);
}
f->dump_int("id", monc->get_global_id());