summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_manager_external_state_d.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_d.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_d.h')
-rw-r--r--src/mongo/db/auth/authz_manager_external_state_d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state_d.h b/src/mongo/db/auth/authz_manager_external_state_d.h
index a9c050be5cb..ebb2b4fb022 100644
--- a/src/mongo/db/auth/authz_manager_external_state_d.h
+++ b/src/mongo/db/auth/authz_manager_external_state_d.h
@@ -28,6 +28,7 @@
#pragma once
+#include <boost/thread/mutex.hpp>
#include <string>
#include "mongo/base/disallow_copying.h"
@@ -86,6 +87,9 @@ namespace mongo {
virtual Status _findUser(const string& usersNamespace,
const BSONObj& query,
BSONObj* result);
+
+ private:
+ boost::mutex _authzDataUpdateLock;
};
} // namespace mongo