diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2020-03-19 09:46:20 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-19 14:21:38 +0000 |
commit | cab9719304212aa0de423816f03c1f9e0cd1fb6b (patch) | |
tree | 806a71799d6b5c210da078b471c7bce2f2b59526 /src/mongo/db/ops | |
parent | 994c78a1a36c006ad659983e2f0a3cba7a6dea41 (diff) | |
download | mongo-cab9719304212aa0de423816f03c1f9e0cd1fb6b.tar.gz |
SERVER-46945: Correct FCV-aware error messages for overlong collection names.
Remove test coverage that exercises cases where namespace length approaches the
bson document size limit.
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/insert.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/ops/insert.cpp b/src/mongo/db/ops/insert.cpp index 1b053dea4fc..877545a9cda 100644 --- a/src/mongo/db/ops/insert.cpp +++ b/src/mongo/db/ops/insert.cpp @@ -203,13 +203,6 @@ Status userAllowedCreateNS(StringData db, StringData coll) { if (!NamespaceString::validCollectionName(coll)) return Status(ErrorCodes::InvalidNamespace, "invalid collection name"); - if (!NamespaceString(db, coll).checkLengthForFCV()) - return Status(ErrorCodes::IncompatibleServerVersion, - str::stream() << "Cannot create collection with a long name " << db << "." - << coll << " - upgrade to feature compatibility version " - << FeatureCompatibilityVersionParser::kVersion44 - << " to be able to do so."); - // check special areas if (db == "system") |