Skip to content

Commit

Permalink
msg/async/AsyncConnection: state will be NONE if replacing by another…
Browse files Browse the repository at this point in the history
… one

Fixes: http://tracker.ceph.com/issues/21883
Signed-off-by: Haomai Wang <[email protected]>
  • Loading branch information
yuyuyu101 committed Oct 23, 2017
1 parent ac643bc commit f2eb981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msg/async/AsyncConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f2eb981

Please sign in to comment.