From 3c8226058db5000543b9b065f3a23d334abba30d Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Thu, 16 Nov 2023 10:24:29 +0000 Subject: [PATCH] osd/OSD: further cleanup send_incremental_map() Signed-off-by: Matan Breizman --- src/osd/OSD.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 136e51cccc81b..04e9b4b6d5451 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -1456,7 +1456,6 @@ void OSDService::send_incremental_map(epoch_t since, Connection *con, dout(10) << "send_incremental_map " << since << " -> " << to << " to " << con << " " << con->get_peer_addr() << dendl; - MOSDMap *m = NULL; OSDSuperblock sblock(get_superblock()); if (to > since && (int64_t)(to - since) > cct->_conf->osd_map_share_max_epochs) { dout(10) << " " << (to - since) << " > max " @@ -1464,8 +1463,7 @@ void OSDService::send_incremental_map(epoch_t since, Connection *con, << ", only sending most recent" << dendl; since = to - cct->_conf->osd_map_share_max_epochs; } - m = build_incremental_map_msg(since, to, sblock); - send_map(m, con); + con->send_message(build_incremental_map_msg(since, to, sblock)); } bool OSDService::_get_map_bl(epoch_t e, bufferlist& bl) -- 2.39.5