]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: fewer msgs
authorSage Weil <sage@newdream.net>
Tue, 10 Nov 2009 00:35:05 +0000 (16:35 -0800)
committerSage Weil <sage@newdream.net>
Thu, 12 Nov 2009 23:12:36 +0000 (15:12 -0800)
src/client/Client.cc

index a0086b3313e42bbfabf8830497638f0057a942ba..b1e033e719562efdb0adb0b6a598cfe8ec3f9450 100644 (file)
@@ -261,6 +261,8 @@ void Client::init()
 
   monclient->init();
   monclient->set_want_keys(CEPH_ENTITY_TYPE_MDS | CEPH_ENTITY_TYPE_OSD);
+  monclient->sub_want("mdsmap", mdsmap->get_epoch());
+  monclient->sub_want_onetime("osdmap", 0);
 
   // do logger crap only once per process.
   static bool did_init = false;
@@ -2726,13 +2728,8 @@ int Client::mount()
   whoami = monclient->get_global_id();
   messenger->set_myname(entity_name_t::CLIENT(whoami.v));
 
-  whoami = messenger->get_myname().num();
-
   objecter->init();
 
-  monclient->sub_want("mdsmap", mdsmap->get_epoch());
-  monclient->renew_subs();
-
   mounted = true;
 
   tick(); // start tick