diff options
author | Janna Golden <janna.golden@mongodb.com> | 2019-08-19 18:01:30 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-19 18:01:30 +0000 |
commit | c8cfa4b83600cd10a70529e05fe626482bb5b65a (patch) | |
tree | 112c5ca24d03ba0f63836c9a9adf3911c24f8710 /src/mongo/db/s/shard_key_util.cpp | |
parent | ceef7f238cbe84e04b29c4d2b2d60baa828520e4 (diff) | |
download | mongo-c8cfa4b83600cd10a70529e05fe626482bb5b65a.tar.gz |
SERVER-42430 Create whitelist of namespaces that are allowed to be created implicitly on shards
Diffstat (limited to 'src/mongo/db/s/shard_key_util.cpp')
-rw-r--r-- | src/mongo/db/s/shard_key_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/shard_key_util.cpp b/src/mongo/db/s/shard_key_util.cpp index fef5707c039..37b505f26bc 100644 --- a/src/mongo/db/s/shard_key_util.cpp +++ b/src/mongo/db/s/shard_key_util.cpp @@ -84,7 +84,7 @@ BSONObj makeCreateIndexesCmd(const NamespaceString& nss, createIndexes.append("createIndexes", nss.coll()); createIndexes.append("indexes", BSON_ARRAY(index.obj())); createIndexes.append("writeConcern", WriteConcernOptions::Majority); - return appendAllowImplicitCreate(createIndexes.obj(), true); + return appendAllowImplicitCreate(createIndexes.obj(), false); } void validateShardKeyAgainstExistingIndexes(OperationContext* opCtx, |