summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/role_graph_builtin_roles.cpp
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2017-09-20 17:50:18 -0400
committerJason Carey <jcarey@argv.me>2017-10-03 18:44:26 -0400
commit3805ccdc25facfe536302321ee4fb485f7030d0c (patch)
tree67eef6bff793cd246e42a415f2ed8393a4bbd620 /src/mongo/db/auth/role_graph_builtin_roles.cpp
parent4c979fe564f6c6e1081af495eba421d10ae0d086 (diff)
downloadmongo-3805ccdc25facfe536302321ee4fb485f7030d0c.tar.gz
SERVER-31289 Add test only $listLocalCursors
In order to make the kill sessions test a bit more reliable, adding a test only agg stage that returns minimal info about cursors. That way we can see if we killed our specific cursors, rather than looking at global counts.
Diffstat (limited to 'src/mongo/db/auth/role_graph_builtin_roles.cpp')
-rw-r--r--src/mongo/db/auth/role_graph_builtin_roles.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/auth/role_graph_builtin_roles.cpp b/src/mongo/db/auth/role_graph_builtin_roles.cpp
index 787cca0476b..018f8dffb96 100644
--- a/src/mongo/db/auth/role_graph_builtin_roles.cpp
+++ b/src/mongo/db/auth/role_graph_builtin_roles.cpp
@@ -187,6 +187,7 @@ MONGO_INITIALIZER(AuthorizationBuiltinRoles)(InitializerContext* context) {
<< ActionType::getParameter
<< ActionType::getShardMap
<< ActionType::hostInfo
+ << ActionType::listCursors // clusterManager gets this also
<< ActionType::listDatabases
<< ActionType::listSessions // clusterManager gets this also
<< ActionType::listShards // clusterManager gets this also
@@ -241,6 +242,7 @@ MONGO_INITIALIZER(AuthorizationBuiltinRoles)(InitializerContext* context) {
<< ActionType::resync // hostManager gets this also
<< ActionType::addShard
<< ActionType::removeShard
+ << ActionType::listCursors // clusterManager gets this also
<< ActionType::listSessions // clusterMonitor gets this also
<< ActionType::listShards // clusterMonitor gets this also
<< ActionType::flushRouterConfig // hostManager gets this also