From 0f28913257b0d6fee3b92927d7ec16a2ad54a0a0 Mon Sep 17 00:00:00 2001 From: Randolph Tan Date: Mon, 14 Mar 2022 15:23:36 +0000 Subject: SERVER-63732 Add new implicitlyCreateIndex and enforceUniqueness to shardCollection command --- src/mongo/s/request_types/sharded_ddl_commands.idl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mongo/s/request_types/sharded_ddl_commands.idl') 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" -- cgit v1.2.1