Skip to content

Commit

Permalink
cephfs: add gid to asok status
Browse files Browse the repository at this point in the history
This is useful e.g. for building a database with a unique ID for each
entity.

Signed-off-by: Patrick Donnelly <[email protected]>
  • Loading branch information
batrick committed Oct 13, 2016
1 parent 90b8196 commit 20d6350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client/Client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ void Client::dump_status(Formatter *f)

f->dump_int("dentry_count", lru.lru_get_size());
f->dump_int("dentry_pinned_count", lru.lru_get_num_pinned());
f->dump_int("id", get_nodeid().v);
f->dump_int("inode_count", inode_map.size());
f->dump_int("mds_epoch", mdsmap->get_epoch());
f->dump_int("osd_epoch", osd_epoch);
Expand Down
1 change: 1 addition & 0 deletions src/mds/MDSDaemon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ void MDSDaemon::dump_status(Formatter *f)
f->dump_unsigned("whoami", MDS_RANK_NONE);
}

f->dump_int("id", monc->get_global_id());
f->dump_string("want_state", ceph_mds_state_name(beacon.get_want_state()));
f->dump_string("state", ceph_mds_state_name(mdsmap->get_state_gid(mds_gid_t(
monc->get_global_id()))));
Expand Down

0 comments on commit 20d6350

Please sign in to comment.