summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_manager_external_state_s.h
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-09-10 15:02:00 -0400
committerSpencer T Brody <spencer@10gen.com>2013-09-11 16:33:27 -0400
commita688dfed6143fb16775008dd9bd63ac94722956b (patch)
tree8d96ef3289f1a1627376552ae4a380596bae34cf /src/mongo/db/auth/authz_manager_external_state_s.h
parent260079ce653ece2fca028d6171e8f3cdfe486bd1 (diff)
downloadmongo-a688dfed6143fb16775008dd9bd63ac94722956b.tar.gz
SERVER-9518 Implement functions in mongos and mongod for locking authorization data
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.h5
1 files changed, 5 insertions, 0 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 903143e707f..baec4d73dca 100644
--- a/src/mongo/db/auth/authz_manager_external_state_s.h
+++ b/src/mongo/db/auth/authz_manager_external_state_s.h
@@ -28,10 +28,12 @@
#pragma once
+#include <boost/scoped_ptr.hpp>
#include <string>
#include "mongo/base/disallow_copying.h"
#include "mongo/base/status.h"
+#include "mongo/client/distlock.h"
#include "mongo/db/auth/authz_manager_external_state.h"
#include "mongo/db/auth/user_name.h"
@@ -86,6 +88,9 @@ namespace mongo {
virtual Status _findUser(const string& usersNamespace,
const BSONObj& query,
BSONObj* result);
+
+ private:
+ scoped_ptr<ScopedDistributedLock> _authzDataUpdateLock;
};
} // namespace mongo