summaryrefslogtreecommitdiff
path: root/src/mongo/s/request_types
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2017-05-12 17:15:19 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2017-06-21 09:02:07 -0400
commit7e5ab840e8aa7627d5969ca53ee46d3fb615bc6a (patch)
tree43e5c1bcfd6ed0b5962dfd5911adc6d3116a6709 /src/mongo/s/request_types
parent5dd64f88d2b66078c957eea5a7889076ee5956b6 (diff)
downloadmongo-7e5ab840e8aa7627d5969ca53ee46d3fb615bc6a.tar.gz
SERVER-29107 move shardCollection logic into new _configsvrShardCollection command on config server
Diffstat (limited to 'src/mongo/s/request_types')
-rw-r--r--src/mongo/s/request_types/shard_collection.idl28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mongo/s/request_types/shard_collection.idl b/src/mongo/s/request_types/shard_collection.idl
index 6e23052b544..054b633996e 100644
--- a/src/mongo/s/request_types/shard_collection.idl
+++ b/src/mongo/s/request_types/shard_collection.idl
@@ -60,3 +60,31 @@ structs:
type: object
description: "The collation to use for the shard key index."
optional: true
+
+ ConfigsvrShardCollection:
+ description: "The internal shardCollection command on the config server"
+ strict: false
+ fields:
+ _configsvrShardCollection:
+ type: namespacestring
+ description: "The namespace of the collection to shard in the form <database>.<collection>."
+ optional: true
+ key:
+ type: object
+ description: "The index specification document to use as the shard key."
+ unique:
+ type: bool
+ description: "Whether the shard key index should enforce a unique constraint"
+ default: false
+ numInitialChunks:
+ type: safeInt64
+ description: "The number of chunks to create initially when sharding an empty collection with a hashed shard key."
+ default: 0
+ initialSplitPoints:
+ type: array<object>
+ description: "A specific set of points to create initial splits at, currently used only by mapReduce"
+ optional: true
+ collation:
+ type: object
+ description: "The collation to use for the shard key index."
+ optional: true