mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
AsyncConnection: verify connection's state is expected
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
This commit is contained in:
parent
125ab922d1
commit
74f3b5c3a0
@ -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