]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: send new clients monmap before osd, mds maps
authorSage Weil <sage@newdream.net>
Wed, 9 Apr 2008 03:54:21 +0000 (20:54 -0700)
committerSage Weil <sage@newdream.net>
Wed, 9 Apr 2008 03:54:21 +0000 (20:54 -0700)
src/mon/ClientMonitor.cc

index d715c1d871f1ff3d91b7e814cc2c6cb54c1ac02c..e47eb331fbd62a05ce43112bf2ec5a4c3989c76b 100644 (file)
@@ -217,15 +217,14 @@ void ClientMonitor::_mounted(int client, MClientMount *m)
 
   dout(10) << "_mounted client" << client << " at " << to << dendl;
   
-  // reply with latest mds, osd maps
-  mon->mdsmon->send_latest(to);
-  mon->osdmon->send_latest(to);
-
-  dout(10) << "sending monmap to " << to << dendl;
+  // reply with latest mon, mds, osd maps
   bufferlist bl;
   mon->monmap->encode(bl);
   mon->messenger->send_message(new MMonMap(bl), to);
 
+  mon->mdsmon->send_latest(to);
+  mon->osdmon->send_latest(to);
+
   delete m;
 }