diff options
author | Andreas Nilsson <andreas.nilsson@10gen.com> | 2014-01-06 14:06:41 -0500 |
---|---|---|
committer | Andreas Nilsson <andreas.nilsson@10gen.com> | 2014-01-07 08:58:27 -0500 |
commit | 620a73f36ec8c6bc1fb8782dcf3f637045cea5d9 (patch) | |
tree | 8ac1f376d9d3aff8dca45e80ee0538bb80cd140a /src/mongo/db/repl/consensus.cpp | |
parent | 38a8592abd02960a56f0b167d3a2366e130a8e9d (diff) | |
download | mongo-620a73f36ec8c6bc1fb8782dcf3f637045cea5d9.tar.gz |
SERVER-12241 Combine internal action types into one
Diffstat (limited to 'src/mongo/db/repl/consensus.cpp')
-rw-r--r-- | src/mongo/db/repl/consensus.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/repl/consensus.cpp b/src/mongo/db/repl/consensus.cpp index ce6086e8548..b925d77000d 100644 --- a/src/mongo/db/repl/consensus.cpp +++ b/src/mongo/db/repl/consensus.cpp @@ -39,12 +39,13 @@ namespace mongo { */ class CmdReplSetFresh : public ReplSetCommand { public: + void help(stringstream& h) const { h << "internal"; } CmdReplSetFresh() : ReplSetCommand("replSetFresh") { } virtual void addRequiredPrivileges(const std::string& dbname, const BSONObj& cmdObj, std::vector<Privilege>* out) { ActionSet actions; - actions.addAction(ActionType::replSetFresh); + actions.addAction(ActionType::internal); out->push_back(Privilege(ResourcePattern::forClusterResource(), actions)); } private: @@ -138,12 +139,13 @@ namespace mongo { class CmdReplSetElect : public ReplSetCommand { public: + void help(stringstream& h) const { h << "internal"; } CmdReplSetElect() : ReplSetCommand("replSetElect") { } virtual void addRequiredPrivileges(const std::string& dbname, const BSONObj& cmdObj, std::vector<Privilege>* out) { ActionSet actions; - actions.addAction(ActionType::replSetElect); + actions.addAction(ActionType::internal); out->push_back(Privilege(ResourcePattern::forClusterResource(), actions)); } private: |