diff options
author | Judah Schvimer <judah@mongodb.com> | 2016-04-12 19:11:23 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2016-04-12 19:11:23 -0400 |
commit | 7ed530a55304bd9cc2b80c054f379b10d9cea8e2 (patch) | |
tree | ff1dac44961da031f3369f0288fb38a347d0d690 /src/mongo/s/commands/cluster_user_management_commands.cpp | |
parent | b0c0acc6767a74ed2e5aa50361ad4474291951f9 (diff) | |
download | mongo-7ed530a55304bd9cc2b80c054f379b10d9cea8e2.tar.gz |
SERVER-20224 commands that write support writeConcern
Diffstat (limited to 'src/mongo/s/commands/cluster_user_management_commands.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_user_management_commands.cpp | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_user_management_commands.cpp b/src/mongo/s/commands/cluster_user_management_commands.cpp index 505dc9225c6..a96306ee6ed 100644 --- a/src/mongo/s/commands/cluster_user_management_commands.cpp +++ b/src/mongo/s/commands/cluster_user_management_commands.cpp @@ -63,6 +63,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Adds a user to the system"; } @@ -98,6 +102,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Used to update a user, for example to change its password"; } @@ -144,6 +152,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Drops a single user."; } @@ -188,6 +200,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Drops all users for a single database."; } @@ -225,6 +241,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Grants roles to a user."; } @@ -270,6 +290,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Revokes roles from a user."; } @@ -317,6 +341,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return false; + } + CmdUsersInfo() : Command("usersInfo") {} virtual void help(stringstream& ss) const { @@ -349,6 +377,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Adds a role to the system"; } @@ -380,6 +412,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Used to update a role"; } @@ -417,6 +453,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Grants privileges to a role"; } @@ -454,6 +494,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Revokes privileges from a role"; } @@ -491,6 +535,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Grants roles to another role."; } @@ -528,6 +576,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Revokes roles from another role."; } @@ -565,6 +617,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Drops a single role. Before deleting the role completely it must remove it " "from any users or roles that reference it. If any errors occur in the middle " @@ -605,6 +661,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Drops all roles from the given database. Before deleting the roles completely " "it must remove them from any users or other roles that reference them. If any " @@ -650,6 +710,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return false; + } + virtual void help(stringstream& ss) const { ss << "Returns information about roles."; } @@ -684,6 +748,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return false; + } + virtual void help(stringstream& ss) const { ss << "Invalidates the in-memory cache of user information"; } @@ -727,6 +795,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual bool adminOnly() const { return true; } @@ -804,6 +876,10 @@ public: } + virtual bool supportsWriteConcern(const BSONObj& cmd) const override { + return true; + } + virtual void help(stringstream& ss) const { ss << "Upgrades the auth data storage schema"; } |