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: v14.2.3~125^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=87efe7f90fd25fe24819bed7fb261bd47a53ac6e;p=ceph.git msg/async: no-need set connection for Message. In function decode_message, it already did. Signed-off-by: Jianpeng Ma (cherry picked from commit 7e1fcf82b61bf624fc5a1a8e647f74378ebccf4a) --- diff --git a/src/msg/async/ProtocolV1.cc b/src/msg/async/ProtocolV1.cc index 714eff74df8a..bbf3126d3aae 100644 --- a/src/msg/async/ProtocolV1.cc +++ b/src/msg/async/ProtocolV1.cc @@ -972,8 +972,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 15c786ce7544..0bf17660b50d 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -1443,8 +1443,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) {