From: Jianpeng Ma Date: Wed, 24 Apr 2019 08:28:45 +0000 (+0800) Subject: msg/async: no-need set connection for Message. X-Git-Tag: v15.1.0~2806^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7e1fcf82b61bf624fc5a1a8e647f74378ebccf4a;p=ceph.git msg/async: no-need set connection for Message. In function decode_message, it already did. Signed-off-by: Jianpeng Ma --- diff --git a/src/msg/async/ProtocolV1.cc b/src/msg/async/ProtocolV1.cc index 887976745368..56f49b0986c4 100644 --- a/src/msg/async/ProtocolV1.cc +++ b/src/msg/async/ProtocolV1.cc @@ -977,8 +977,6 @@ CtPtr ProtocolV1::handle_message_footer(char *buffer, int r) { } } - message->set_connection(connection); - #if defined(WITH_LTTNG) && defined(WITH_EVENTTRACE) if (message->get_type() == CEPH_MSG_OSD_OP || message->get_type() == CEPH_MSG_OSD_OPREPLY) { diff --git a/src/msg/async/ProtocolV2.cc b/src/msg/async/ProtocolV2.cc index 8fb38a84cd0f..b8d506fb8086 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -1448,8 +1448,6 @@ CtPtr ProtocolV2::handle_message() { } } - message->set_connection(connection); - #if defined(WITH_LTTNG) && defined(WITH_EVENTTRACE) if (message->get_type() == CEPH_MSG_OSD_OP || message->get_type() == CEPH_MSG_OSD_OPREPLY) {