From fcbf7dc5615d9bdf9d7bc040b6f01a7f8bbbe7d6 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Mon, 26 Aug 2019 14:21:18 +0800 Subject: [PATCH] crimson/net: remove the check of impossible CLOSING state Signed-off-by: Yingxin Cheng --- src/crimson/net/ProtocolV2.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/crimson/net/ProtocolV2.cc b/src/crimson/net/ProtocolV2.cc index c86fa4b4f40..838921a6415 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); -- 2.39.5