mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
Merge pull request #4611 from yuyuyu101/wip-async-fix-9
AsyncConnection: verify connection's state is expected
This commit is contained in:
commit
eb32123508
@ -1082,7 +1082,7 @@ int AsyncConnection::_process_connection()
|
||||
}
|
||||
|
||||
lock.Lock();
|
||||
if (state != STATE_ACCEPTING_WAIT_CONNECT_MSG_AUTH) {
|
||||
if (state != STATE_CONNECTING_WAIT_IDENTIFY_PEER) {
|
||||
ldout(async_msgr->cct, 1) << __func__ << " state changed while learned_addr, mark_down must be called just now"
|
||||
<< dendl;
|
||||
assert(state == STATE_CLOSED);
|
||||
|
Loading…
Reference in New Issue
Block a user