]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: get gid from MonClient 11486/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 13 Oct 2016 19:55:49 +0000 (15:55 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 14 Oct 2016 01:14:52 +0000 (21:14 -0400)
This is consistent with other parts of the code that set whoami.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/client/Client.cc

index 5de2b22cbbc2b35d9176addf47c624077b648a89..01580bc6d893e932c532cad9c9d5866d95eb0efe 100644 (file)
@@ -246,7 +246,7 @@ Client::Client(Messenger *m, MonClient *mc)
     remount_finisher(m->cct),
     objecter_finisher(m->cct),
     tick_event(NULL),
-    monclient(mc), messenger(m), whoami(m->get_myname().num()),
+    monclient(mc), messenger(m), whoami(mc->get_global_id()),
     cap_epoch_barrier(0), fsmap(nullptr), fsmap_user(nullptr),
     last_tid(0), oldest_tid(0), last_flush_tid(1),
     initialized(false), authenticated(false),