diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-04-06 10:48:36 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-06 18:20:14 -0400 |
commit | 7ea3fc90c6c1f175da1e76ff79b1e6ae09377141 (patch) | |
tree | bd2f3f246c48a3a88578c3195432cb30fc3bfff2 /src/mongo/db/client_basic.h | |
parent | 9e2cc1588f25f81983de48f2c69130203e325175 (diff) | |
download | mongo-7ea3fc90c6c1f175da1e76ff79b1e6ae09377141.tar.gz |
SERVER-17817 When setting up ClientBasic, get AuthorizationSession object from AuthorizationManager.
Diffstat (limited to 'src/mongo/db/client_basic.h')
-rw-r--r-- | src/mongo/db/client_basic.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/client_basic.h b/src/mongo/db/client_basic.h index f2b1bd05a75..e68a71b75a9 100644 --- a/src/mongo/db/client_basic.h +++ b/src/mongo/db/client_basic.h @@ -28,8 +28,8 @@ #pragma once -#include <boost/noncopyable.hpp> #include <boost/scoped_ptr.hpp> +#include <memory> #include "mongo/base/disallow_copying.h" #include "mongo/util/decorable.h" @@ -60,7 +60,7 @@ namespace mongo { bool hasAuthorizationSession() const; AuthorizationSession* getAuthorizationSession() const; - void setAuthorizationSession(AuthorizationSession* authorizationSession); + void setAuthorizationSession(std::unique_ptr<AuthorizationSession> authorizationSession); bool getIsLocalHostConnection() { if (!hasRemote()) { @@ -92,7 +92,7 @@ namespace mongo { private: boost::scoped_ptr<AuthenticationSession> _authenticationSession; - boost::scoped_ptr<AuthorizationSession> _authorizationSession; + std::unique_ptr<AuthorizationSession> _authorizationSession; ServiceContext* const _serviceContext; AbstractMessagingPort* const _messagingPort; }; |