]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: recover lock to continue later 9802/head
authorHaomai Wang <haomai@xsky.com>
Wed, 22 Jun 2016 14:26:46 +0000 (22:26 +0800)
committerHaomai Wang <haomai@xsky.com>
Wed, 22 Jun 2016 14:26:46 +0000 (22:26 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/AsyncConnection.cc

index 79403d0bcd38db956a9e61272f1c17ffb3580996..7e486d30be0af0d3b8c1d58ba021ca224767f7ed 100644 (file)
@@ -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);