summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/action_set.h
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2016-07-01 21:54:32 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2016-07-06 19:20:40 -0400
commit2988729f56f465277c6a1e5a2fc186b05281a0e3 (patch)
tree27fff480465eca931879f639940dfffb1e7a78ef /src/mongo/db/auth/action_set.h
parentce8c7e46e290f1f1865f63327b7eb29b0bd8663a (diff)
downloadmongo-2988729f56f465277c6a1e5a2fc186b05281a0e3.tar.gz
SERVER-24900 Remove duplicated auth code of replset commands
Diffstat (limited to 'src/mongo/db/auth/action_set.h')
-rw-r--r--src/mongo/db/auth/action_set.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/auth/action_set.h b/src/mongo/db/auth/action_set.h
index d78b70879fe..dc9b8cdc9c5 100644
--- a/src/mongo/db/auth/action_set.h
+++ b/src/mongo/db/auth/action_set.h
@@ -28,6 +28,7 @@
#pragma once
#include <bitset>
+#include <initializer_list>
#include <vector>
#include "mongo/base/status.h"
@@ -44,6 +45,7 @@ namespace mongo {
class ActionSet {
public:
ActionSet() : _actions(0) {}
+ ActionSet(std::initializer_list<ActionType> actions);
void addAction(const ActionType& action);
void addAllActionsFromSet(const ActionSet& actionSet);