From: Haomai Wang Date: Wed, 22 Jun 2016 14:26:46 +0000 (+0800) Subject: msg/async: recover lock to continue later X-Git-Tag: v11.0.0~78^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=86f76f96df53168f6551270dff94515156c3ddef;p=ceph.git msg/async: recover lock to continue later Signed-off-by: Haomai Wang --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 79403d0bcd38..7e486d30be0a 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -1599,6 +1599,7 @@ ssize_t AsyncConnection::handle_connect_msg(ceph_msg_connect &connect, bufferlis bool authorizer_valid; if (!async_msgr->verify_authorizer(this, peer_type, connect.authorizer_protocol, authorizer_bl, authorizer_reply, authorizer_valid, session_key) || !authorizer_valid) { + lock.Lock(); ldout(async_msgr->cct,0) << __func__ << ": got bad authorizer" << dendl; session_security.reset(); return _reply_accept(CEPH_MSGR_TAG_BADAUTHORIZER, connect, reply, authorizer_reply);