]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "AsyncConnection: Close connection when unregistered connection met WAIT"
authorHaomai Wang <haomai@xsky.com>
Sat, 27 Feb 2016 12:50:48 +0000 (20:50 +0800)
committerHaomai Wang <haomai@xsky.com>
Sat, 27 Feb 2016 12:50:48 +0000 (20:50 +0800)
This reverts commit 9cc1055eb6e18d55084d5af2b2f93eb8da5ab7da.

Fix #14912
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/AsyncConnection.cc

index cd913c9df3704af9ec3443832cfa47322764e63d..49364490a2f529cc63da5a765afc2831012a81bf 100644 (file)
@@ -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;
   }