summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/user_management_commands_parser.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-12-23 12:52:09 -0500
committerAndy Schwerin <schwerin@10gen.com>2014-01-10 13:03:51 -0500
commit74f5f12f83f5dc6e221e4218ebe6832930822627 (patch)
tree3032d4ad7e5cd9cda7ee46760b3b1043df0abad0 /src/mongo/db/auth/user_management_commands_parser.h
parent0abcd25376977c3f63db11446ab0b18c0ce88fff (diff)
downloadmongo-74f5f12f83f5dc6e221e4218ebe6832930822627.tar.gz
SERVER-11995 Have authSchemaUpgrade sent to a mongos upgrade auth schema everywhere.
In particular, sends the commands to each shard, as well as performing the upgrade on the config servers. Also, allow user to specify maximum number of upgrade steps to take on any given shard. Defaults to "as many as necessary". To achieve these changes, separate implementations of the upgrade command are provided to mongos and mognod.
Diffstat (limited to 'src/mongo/db/auth/user_management_commands_parser.h')
-rw-r--r--src/mongo/db/auth/user_management_commands_parser.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/auth/user_management_commands_parser.h b/src/mongo/db/auth/user_management_commands_parser.h
index befeb2731ba..0f0a9696251 100644
--- a/src/mongo/db/auth/user_management_commands_parser.h
+++ b/src/mongo/db/auth/user_management_commands_parser.h
@@ -26,6 +26,8 @@
* it in the license file.
*/
+#pragma once
+
#include <string>
#include <vector>
@@ -180,11 +182,14 @@ namespace auth {
BSONObj* parsedWriteConcern);
/**
- * Takes a command object describing an invocation of the "authSchemaUpgradeStep" command and
- * parses out the write concern.
+ * Takes a command object describing an invocation of the "authSchemaUpgrade" command and
+ * parses out the write concern, maximum steps to take and whether or not shard servers should
+ * also be upgraded, in the sharded deployment case.
*/
Status parseAuthSchemaUpgradeStepCommand(const BSONObj& cmdObj,
const std::string& dbname,
+ int* maxSteps,
+ bool* shouldUpgradeShards,
BSONObj* parsedWriteConcern);
/**
* Parses the privileges described in "privileges" into a vector of Privilege objects.