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.56.3~9^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2ebf4d065af3dc2e581a25b921071af3efb57f8a;p=ceph.git osd: kill unused addr-based send_map() Not used, old API, bad. Signed-off-by: Sage Weil (cherry picked from commit e359a862199c8a94cb238f7271ba1b0edcc0863c) --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index c189a4508f4e..0cac58410c2c 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4328,17 +4328,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 08de19532ff4..c3bc0b96839e 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -834,7 +834,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: