Skip to content

Commit

Permalink
msg/async: unregister con from accept vs mark_down race
Browse files Browse the repository at this point in the history
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Jan 15, 2019
1 parent 7e2fb35 commit b2cf3fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/msg/async/AsyncConnection.cc
Expand Up @@ -1875,6 +1875,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 || state == STATE_NONE);
async_msgr->unregister_conn(this);
goto fail_registered;
}

Expand Down

0 comments on commit b2cf3fd

Please sign in to comment.