diff options
author | Randolph Tan <randolph@10gen.com> | 2015-04-20 11:26:17 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2015-04-24 11:14:18 -0400 |
commit | db51f85d95c6d79ad50e112021958c16ef37b332 (patch) | |
tree | 4a78f80452a2fc76437a8263444f9609689d6fc0 /src/mongo/db/auth/authz_manager_external_state_s.h | |
parent | 3353caa09f6f502a3fd4753dd92679890e6ede32 (diff) | |
download | mongo-db51f85d95c6d79ad50e112021958c16ef37b332.tar.gz |
SERVER-17592 Refactor legacy logic into distributed lock manager
Diffstat (limited to 'src/mongo/db/auth/authz_manager_external_state_s.h')
-rw-r--r-- | src/mongo/db/auth/authz_manager_external_state_s.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state_s.h b/src/mongo/db/auth/authz_manager_external_state_s.h index 7601993a536..3b0e1f828a5 100644 --- a/src/mongo/db/auth/authz_manager_external_state_s.h +++ b/src/mongo/db/auth/authz_manager_external_state_s.h @@ -28,21 +28,19 @@ #pragma once -#include <boost/thread/mutex.hpp> -#include <boost/scoped_ptr.hpp> +#include <memory> #include <string> #include "mongo/base/disallow_copying.h" #include "mongo/base/status.h" #include "mongo/db/auth/authz_manager_external_state.h" #include "mongo/db/auth/user_name.h" +#include "mongo/s/dist_lock_manager.h" #include "mongo/stdx/functional.h" namespace mongo { - class ScopedDistributedLock; - /** * The implementation of AuthzManagerExternalState functionality for mongos. */ @@ -112,7 +110,7 @@ namespace mongo { private: boost::mutex _distLockGuard; // Guards access to _authzDataUpdateLock - boost::scoped_ptr<ScopedDistributedLock> _authzDataUpdateLock; + std::unique_ptr<DistLockManager::ScopedDistLock> _authzDataUpdateLock; }; } // namespace mongo |