From da0069a67fa50c526562e68feffa59a554eba78f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 30 Jun 2019 18:04:28 +0800 Subject: [PATCH] crimson/net: use Connection::peer_is_mon() always prefer using interface over its implementation Signed-off-by: Kefu Chai --- src/crimson/net/ProtocolV1.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/net/ProtocolV1.cc b/src/crimson/net/ProtocolV1.cc index 7e8f7e18c24a..e42378e00f7b 100644 --- a/src/crimson/net/ProtocolV1.cc +++ b/src/crimson/net/ProtocolV1.cc @@ -172,7 +172,7 @@ void ProtocolV1::reset_session() seastar::future ProtocolV1::handle_connect_reply(msgr_tag_t tag) { - if (h.auth_payload.length() && conn.peer_type != CEPH_ENTITY_TYPE_MON) { + if (h.auth_payload.length() && !conn.peer_is_mon()) { if (tag == CEPH_MSGR_TAG_CHALLENGE_AUTHORIZER) { // more h.auth_more = messenger.get_auth_client()->handle_auth_reply_more( conn.shared_from_this(), auth_meta, h.auth_payload); -- 2.47.3