summaryrefslogtreecommitdiff
path: root/src/mongo/s/request_types/sharded_ddl_commands.idl
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2022-03-14 15:23:36 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-14 16:18:28 +0000
commit0f28913257b0d6fee3b92927d7ec16a2ad54a0a0 (patch)
tree1caedee8a8fef474b7a72cb665acaf519afb58f7 /src/mongo/s/request_types/sharded_ddl_commands.idl
parent1512c333827379f6ae74a4e2cceeaadbe768ba04 (diff)
downloadmongo-0f28913257b0d6fee3b92927d7ec16a2ad54a0a0.tar.gz
SERVER-63732 Add new implicitlyCreateIndex and enforceUniqueness to shardCollection command
Diffstat (limited to 'src/mongo/s/request_types/sharded_ddl_commands.idl')
-rw-r--r--src/mongo/s/request_types/sharded_ddl_commands.idl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/s/request_types/sharded_ddl_commands.idl b/src/mongo/s/request_types/sharded_ddl_commands.idl
index 9bd7602a7dc..bd20052c334 100644
--- a/src/mongo/s/request_types/sharded_ddl_commands.idl
+++ b/src/mongo/s/request_types/sharded_ddl_commands.idl
@@ -154,6 +154,17 @@ structs:
type: uuid
description: "The expected UUID of the collection."
optional: true
+ implicitlyCreateIndex:
+ description: "Creates an index on the shard key pattern if the collection is empty."
+ type: bool
+ default: true
+ enforceUniquenessCheck:
+ description: >-
+ Controls whether this command verifies that any unique indexes are prefixed by
+ the shard key pattern if unique is true. If true then it will verify and if
+ false then it won't.
+ type: bool
+ default: true
CreateCollectionResponse:
description: "Response of the create collection command"