diff options
author | Randolph Tan <randolph@10gen.com> | 2022-03-18 15:23:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-18 17:27:33 +0000 |
commit | 2107c9df336901aea91fbc0bd701bea0591b96cf (patch) | |
tree | 9b0499c0ee7d963a4b4d00c0d23bbca26a85b596 /src/mongo/s | |
parent | b6688d9a44715e1472c1204c069b635325727715 (diff) | |
download | mongo-2107c9df336901aea91fbc0bd701bea0591b96cf.tar.gz |
SERVER-64573 Make implicitlyCreateIndex and enforceUniquenessCheck fields optional
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/commands/shard_collection.idl | 6 | ||||
-rw-r--r-- | src/mongo/s/request_types/sharded_ddl_commands.idl | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/mongo/s/commands/shard_collection.idl b/src/mongo/s/commands/shard_collection.idl index 82ea915656a..6556d524ba7 100644 --- a/src/mongo/s/commands/shard_collection.idl +++ b/src/mongo/s/commands/shard_collection.idl @@ -80,11 +80,9 @@ structs: optional: true implicitlyCreateIndex: description: "Creates an index on the shard key pattern if the collection is empty." - type: bool - default: true + type: optionalBool 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 + type: optionalBool diff --git a/src/mongo/s/request_types/sharded_ddl_commands.idl b/src/mongo/s/request_types/sharded_ddl_commands.idl index 7012ecda814..efc011f637c 100644 --- a/src/mongo/s/request_types/sharded_ddl_commands.idl +++ b/src/mongo/s/request_types/sharded_ddl_commands.idl @@ -156,15 +156,13 @@ structs: optional: true implicitlyCreateIndex: description: "Creates an index on the shard key pattern if the collection is empty." - type: bool - default: true + type: optionalBool 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 + type: optionalBool CreateCollectionResponse: description: "Response of the create collection command" |