diff options
Diffstat (limited to 'src/mongo/util/net/ssl_manager.cpp')
-rw-r--r-- | src/mongo/util/net/ssl_manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/net/ssl_manager.cpp b/src/mongo/util/net/ssl_manager.cpp index b2f1df6aa1f..be5165b97b8 100644 --- a/src/mongo/util/net/ssl_manager.cpp +++ b/src/mongo/util/net/ssl_manager.cpp @@ -153,7 +153,7 @@ namespace mongo { //////////////////////////////////////////////////////////////// - SimpleMutex sslManagerMtx("SSL Manager"); + SimpleMutex sslManagerMtx; SSLManagerInterface* theSSLManager = NULL; static const int BUFFER_SIZE = 8*1024; static const int DATE_LEN = 128; @@ -323,7 +323,7 @@ namespace mongo { MONGO_INITIALIZER_WITH_PREREQUISITES(SSLManager, ("SetupOpenSSL")) (InitializerContext*) { - SimpleMutex::scoped_lock lck(sslManagerMtx); + stdx::lock_guard<SimpleMutex> lck(sslManagerMtx); if (sslGlobalParams.sslMode.load() != SSLParams::SSLMode_disabled) { theSSLManager = new SSLManager(sslGlobalParams, isSSLServer); } @@ -336,7 +336,7 @@ namespace mongo { } SSLManagerInterface* getSSLManager() { - SimpleMutex::scoped_lock lck(sslManagerMtx); + stdx::lock_guard<SimpleMutex> lck(sslManagerMtx); if (theSSLManager) return theSSLManager; return NULL; |