From: Patrick Donnelly Date: Tue, 23 Oct 2018 22:20:09 +0000 (-0700) Subject: mds: add missing mds_lock X-Git-Tag: v14.0.1~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24725%2Fhead;p=ceph.git mds: add missing mds_lock Fixes: http://tracker.ceph.com/issues/36573 Introduced-by: ecbd4a8aa8e6c1c72af4e0be15e0340629bfdc3a Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index 8f87301761a2..1b7c344af42b 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -1304,6 +1304,7 @@ KeyStore *MDSDaemon::ms_get_auth1_authorizer_keystore() int MDSDaemon::ms_handle_authentication(Connection *con) { + std::lock_guard l(mds_lock); int ret = 0; entity_name_t n(con->get_peer_type(), con->get_peer_global_id());