summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2016-09-09 17:24:49 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2016-09-09 17:24:49 -0400
commit5adc47945eaec50a7bf502fe842473bd7ceae5f6 (patch)
tree164f4fb65bb338268804c771620b838eee2240cf /src/mongo/db/catalog
parent53c412f3e4ca97ba19a2d290bcaed0526f2b561b (diff)
downloadmongo-5adc47945eaec50a7bf502fe842473bd7ceae5f6.tar.gz
SERVER-25741 Move check for "collation" option into CmdCreate::run().
The userCreateNS() function is used by replication in the 3.2 codepath for initial sync.
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/database.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/catalog/database.cpp b/src/mongo/db/catalog/database.cpp
index 1895acb15f7..feb4111edac 100644
--- a/src/mongo/db/catalog/database.cpp
+++ b/src/mongo/db/catalog/database.cpp
@@ -683,14 +683,6 @@ Status userCreateNS(OperationContext* txn,
// Validate the collation, if there is one.
if (!collectionOptions.collation.isEmpty()) {
- if (serverGlobalParams.featureCompatibilityVersion.load() ==
- ServerGlobalParams::FeatureCompatibilityVersion_32) {
- return Status(ErrorCodes::InvalidOptions,
- "The featureCompatibilityVersion must be 3.4 to create a collection or "
- "view with a default collation. See "
- "http://dochub.mongodb.org/core/3.4-feature-compatibility.");
- }
-
auto collator = CollatorFactoryInterface::get(txn->getServiceContext())
->makeFromBSON(collectionOptions.collation);
if (!collator.isOK()) {