From: Haomai Wang Date: Mon, 23 Oct 2017 04:38:56 +0000 (+0800) Subject: msg/async/AsyncConnection: state will be NONE if replacing by another one X-Git-Tag: v13.0.1~445^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18467%2Fhead;p=ceph.git msg/async/AsyncConnection: state will be NONE if replacing by another one Fixes: http://tracker.ceph.com/issues/21883 Signed-off-by: Haomai Wang --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index a1da64c04da4..09ec031f2831 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -1841,7 +1841,7 @@ ssize_t AsyncConnection::handle_connect_msg(ceph_msg_connect &connect, bufferlis } if (state != STATE_ACCEPTING_WAIT_CONNECT_MSG_AUTH) { ldout(async_msgr->cct, 1) << __func__ << " state changed while accept_conn, it must be mark_down" << dendl; - assert(state == STATE_CLOSED); + assert(state == STATE_CLOSED || state == STATE_NONE); goto fail_registered; }