From a3bd66bfb38ea2b7747da347e272ec0a53084425 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 24 Jul 2020 16:59:58 +0800 Subject: [PATCH] crimson/net: set is_rev1 for messenger v2.1 support Signed-off-by: Kefu Chai --- src/crimson/net/ProtocolV2.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/crimson/net/ProtocolV2.cc b/src/crimson/net/ProtocolV2.cc index c9512cc9d3d61..0c82edc1564d4 100644 --- a/src/crimson/net/ProtocolV2.cc +++ b/src/crimson/net/ProtocolV2.cc @@ -482,6 +482,9 @@ ProtocolV2::banner_exchange(bool is_connect) if (this->peer_required_features == 0) { this->connection_features = msgr2_required; } + const bool is_rev1 = HAVE_MSGR2_FEATURE(peer_supported_features, REVISION_1); + tx_frame_asm.set_is_rev1(is_rev1); + rx_frame_asm.set_is_rev1(is_rev1); auto hello = HelloFrame::Encode(messenger.get_mytype(), conn.target_addr); -- 2.39.5