]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: fix dispatch
authorSage Weil <sage@newdream.net>
Tue, 22 Sep 2009 20:09:09 +0000 (13:09 -0700)
committerSage Weil <sage@newdream.net>
Tue, 22 Sep 2009 21:18:50 +0000 (14:18 -0700)
src/librados.cc

index a4d4cfce21b40fa98968c2275e4496dd3dfa3090..5013bab965d009cd160a239e9d5f052e76365c79 100644 (file)
@@ -290,6 +290,8 @@ bool RadosClient::init()
     return false;
 
   monclient.set_messenger(messenger);
+  
+  messenger->add_dispatcher_head(this);
 
   rank.set_policy(entity_name_t::TYPE_MON, SimpleMessenger::Policy::lossy_fail_after(1.0));
   rank.set_policy(entity_name_t::TYPE_MDS, SimpleMessenger::Policy::lossless());
@@ -309,6 +311,7 @@ bool RadosClient::init()
 
   objecter->set_client_incarnation(0);
   objecter->init();
+  monclient.renew_subs();
 
   while (osdmap.get_epoch() == 0) {
     dout(1) << "waiting for osdmap" << dendl;