]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: remove obsolete mds map bcast
authorSage Weil <sage@newdream.net>
Fri, 4 Sep 2009 19:52:25 +0000 (12:52 -0700)
committerSage Weil <sage@newdream.net>
Fri, 4 Sep 2009 19:52:25 +0000 (12:52 -0700)
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h

index 01fa40bea34580e171d964200dc2d56291ec9564..acb414afab11abcad46b6557d404699b5e4fab7f 100644 (file)
@@ -92,11 +92,6 @@ bool MDSMonitor::update_from_paxos()
   dout(4) << "new map" << dendl;
   print_map(mdsmap, 0);
 
-  if (mon->is_leader()) {
-    // bcast map to mds
-    //bcast_latest_mds();
-  }
-
   send_to_waiting();
   check_subs();
 
@@ -510,17 +505,6 @@ bool MDSMonitor::prepare_command(MMonCommand *m)
 }
 
 
-
-void MDSMonitor::bcast_latest_mds()
-{
-  dout(10) << "bcast_latest_mds " << mdsmap.get_epoch() << dendl;
-  
-  for (map<entity_addr_t,MDSMap::mds_info_t>::iterator p = mdsmap.mds_info.begin();
-       p != mdsmap.mds_info.end();
-       p++)
-    send_full(p->second.get_inst());
-}
-
 void MDSMonitor::send_full(entity_inst_t dest)
 {
   dout(11) << "send_full to " << dest << dendl;
index d21a5c51376de0cd281abd92ad070d1f23908913..e7ba6cca44e3ad5a438e8d331bed5032bca82477 100644 (file)
@@ -98,7 +98,6 @@ public:
 private:
   list<entity_inst_t> waiting_for_map;
 
-  void bcast_latest_mds();
   void send_full(entity_inst_t dest);
   void send_to_waiting();