summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/role_graph.h
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2018-02-13 14:09:32 -0500
committerADAM David Alan Martin <adam.martin@10gen.com>2018-02-14 15:57:45 -0500
commit060e32706980ffc84aac250022d55f92afcffa69 (patch)
treeb179eee919fd60d08c0a1cfbef716b31a7db9925 /src/mongo/db/auth/role_graph.h
parent8b6a6266458cfd065cb0133a909bae856e417882 (diff)
downloadmongo-060e32706980ffc84aac250022d55f92afcffa69.tar.gz
SERVER-33275 Remove `platform/unordered_`* headers
These headers date from before C++11 support and the `::mongo::stdx::` namespace. They can be removed and uses of the names therein can be changed to `::mongo::stdx::unordered_`* forms.
Diffstat (limited to 'src/mongo/db/auth/role_graph.h')
-rw-r--r--src/mongo/db/auth/role_graph.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/auth/role_graph.h b/src/mongo/db/auth/role_graph.h
index 6eae09223da..1b8678609a7 100644
--- a/src/mongo/db/auth/role_graph.h
+++ b/src/mongo/db/auth/role_graph.h
@@ -37,8 +37,8 @@
#include "mongo/db/auth/restriction_set.h"
#include "mongo/db/auth/role_name.h"
#include "mongo/db/namespace_string.h"
-#include "mongo/platform/unordered_map.h"
-#include "mongo/platform/unordered_set.h"
+#include "mongo/stdx/unordered_map.h"
+#include "mongo/stdx/unordered_set.h"
namespace mongo {
@@ -294,7 +294,7 @@ private:
// Helper method doing a topological DFS to compute the indirect privilege
// data and look for cycles
Status _recomputePrivilegeDataHelper(const RoleName& currentRole,
- unordered_set<RoleName>& visitedRoles);
+ stdx::unordered_set<RoleName>& visitedRoles);
/**
* If the role name given is not a built-in role, or it is but it's already in the role
@@ -328,9 +328,9 @@ private:
// Represents all the outgoing edges to other roles from any given role.
- using EdgeSet = unordered_map<RoleName, std::vector<RoleName>>;
+ using EdgeSet = stdx::unordered_map<RoleName, std::vector<RoleName>>;
// Maps a role name to a list of privileges associated with that role.
- using RolePrivilegeMap = unordered_map<RoleName, PrivilegeVector>;
+ using RolePrivilegeMap = stdx::unordered_map<RoleName, PrivilegeVector>;
// Maps a role name to a restriction document.
using RestrictionDocumentMap = stdx::unordered_map<RoleName, SharedRestrictionDocument>;
@@ -339,7 +339,7 @@ private:
stdx::unordered_map<RoleName, std::vector<SharedRestrictionDocument>>;
EdgeSet _roleToSubordinates;
- unordered_map<RoleName, unordered_set<RoleName>> _roleToIndirectSubordinates;
+ stdx::unordered_map<RoleName, stdx::unordered_set<RoleName>> _roleToIndirectSubordinates;
EdgeSet _roleToMembers;
RolePrivilegeMap _directPrivilegesForRole;
RolePrivilegeMap _allPrivilegesForRole;