From: Sage Weil Date: Fri, 25 Jan 2013 17:30:00 +0000 (-0800) Subject: osd: kill unused addr-based send_map() X-Git-Tag: v0.57~110^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e359a862199c8a94cb238f7271ba1b0edcc0863c;p=ceph.git osd: kill unused addr-based send_map() Not used, old API, bad. Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index e684d26763bb..6247c40a4c53 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4470,17 +4470,6 @@ MOSDMap *OSD::build_incremental_map_msg(epoch_t since, epoch_t to) return m; } -void OSD::send_map(MOSDMap *m, const entity_inst_t& inst, bool lazy) -{ - Messenger *msgr = client_messenger; - if (entity_name_t::TYPE_OSD == inst.name._type) - msgr = cluster_messenger; - if (lazy) - msgr->lazy_send_message(m, inst); // only if we already have an open connection - else - msgr->send_message(m, inst); -} - void OSD::send_map(MOSDMap *m, Connection *con) { Messenger *msgr = client_messenger; diff --git a/src/osd/OSD.h b/src/osd/OSD.h index b4c5b8491a34..fb6f487bcaa1 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -838,7 +838,6 @@ private: MOSDMap *build_incremental_map_msg(epoch_t from, epoch_t to); void send_incremental_map(epoch_t since, Connection *con); - void send_map(MOSDMap *m, const entity_inst_t& inst, bool lazy); void send_map(MOSDMap *m, Connection *con); protected: