]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: include ID in mds_sessions asok
authorJohn Spray <john.spray@redhat.com>
Fri, 4 Jul 2014 14:57:19 +0000 (15:57 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 14 Jul 2014 13:12:36 +0000 (14:12 +0100)
So that an admin can map a ceph-fuse process
reliably to an entry in the MDS session list.

Signed-off-by: John Spray <john.spray@redhat.com>
src/client/Client.cc

index b26a0d225bd735322275e558483b12b2090d3654..ca159368effaac02816c64a523370e8749ee0532 100644 (file)
@@ -1236,6 +1236,7 @@ void Client::connect_mds_targets(int mds)
 
 void Client::dump_mds_sessions(Formatter *f)
 {
+  f->dump_int("id", get_nodeid().v);
   f->open_array_section("sessions");
   for (map<int,MetaSession*>::const_iterator p = mds_sessions.begin(); p != mds_sessions.end(); ++p) {
     f->open_object_section("session");