]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/net: remove the check of impossible CLOSING state
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 26 Aug 2019 06:21:18 +0000 (14:21 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 28 Aug 2019 02:16:39 +0000 (10:16 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/ProtocolV2.cc

index c86fa4b4f409ece148091e8c939fbec618606a98..838921a64156b287051dfafd18060b8af170347d 100644 (file)
@@ -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);