From: Yingxin Cheng Date: Mon, 26 Aug 2019 06:21:18 +0000 (+0800) Subject: crimson/net: remove the check of impossible CLOSING state X-Git-Tag: v15.1.0~1675^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fcbf7dc5615d9bdf9d7bc040b6f01a7f8bbbe7d6;p=ceph.git crimson/net: remove the check of impossible CLOSING state Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/net/ProtocolV2.cc b/src/crimson/net/ProtocolV2.cc index c86fa4b4f409..838921a64156 100644 --- a/src/crimson/net/ProtocolV2.cc +++ b/src/crimson/net/ProtocolV2.cc @@ -1118,11 +1118,6 @@ ProtocolV2::handle_existing_connection(SocketConnectionRef existing_conn) existing_proto->client_cookie, existing_proto->server_cookie); - if (existing_proto->state == state_t::CLOSING) { - logger().warn("{} existing connection {} already closed.", conn, *existing_conn); - return send_server_ident(); - } - if (existing_proto->state == state_t::REPLACING) { logger().warn("{} racing replace happened while replacing existing connection {}", conn, *existing_conn);