From f2eb981377f4061debfa67cbd88ca2921a9dfb27 Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Mon, 23 Oct 2017 12:38:56 +0800 Subject: [PATCH] msg/async/AsyncConnection: state will be NONE if replacing by another one Fixes: http://tracker.ceph.com/issues/21883 Signed-off-by: Haomai Wang --- src/msg/async/AsyncConnection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index a1da64c04da4d..09ec031f28312 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; } -- 2.39.5