From: Haomai Wang Date: Sat, 27 Feb 2016 12:50:48 +0000 (+0800) Subject: Revert "AsyncConnection: Close connection when unregistered connection met WAIT" X-Git-Tag: v10.1.0~271^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3e18f564ed872cd0690571987b6ee20d6b6e7316;p=ceph.git Revert "AsyncConnection: Close connection when unregistered connection met WAIT" This reverts commit 9cc1055eb6e18d55084d5af2b2f93eb8da5ab7da. Fix #14912 Signed-off-by: Haomai Wang --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index cd913c9df370..49364490a2f5 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -1584,10 +1584,6 @@ int AsyncConnection::handle_connect_reply(ceph_msg_connect &connect, ceph_msg_co } if (reply.tag == CEPH_MSGR_TAG_WAIT) { ldout(async_msgr->cct, 3) << __func__ << " connect got WAIT (connection race)" << dendl; - if (!once_ready) { - ldout(async_msgr->cct, 1) << __func__ << " got WAIT while connection isn't registered, just closed." << dendl; - goto fail; - } state = STATE_WAIT; }