From: Sage Weil Date: Fri, 4 Sep 2009 19:52:25 +0000 (-0700) Subject: mon: remove obsolete mds map bcast X-Git-Tag: v0.14~27 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d05c7297cff761e416de2e12295c3d06ce633108;p=ceph.git mon: remove obsolete mds map bcast --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 01fa40bea34..acb414afab1 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -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::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; diff --git a/src/mon/MDSMonitor.h b/src/mon/MDSMonitor.h index d21a5c51376..e7ba6cca44e 100644 --- a/src/mon/MDSMonitor.h +++ b/src/mon/MDSMonitor.h @@ -98,7 +98,6 @@ public: private: list waiting_for_map; - void bcast_latest_mds(); void send_full(entity_inst_t dest); void send_to_waiting();