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/namespace_string.h | |
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/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index 598ff87c4f0..ce720cffffb 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -47,6 +47,7 @@ class NamespaceString { public: constexpr static size_t MaxDatabaseNameLen = 128; // max str len for the db name, including null char + constexpr static size_t MaxNSCollectionLenFCV42 = 120U; constexpr static size_t MaxNsCollectionLen = 255; // Reserved system namespaces @@ -298,11 +299,6 @@ public: bool isDropPendingNamespace() const; /** - * Returns true if the namespace length is valid based on the FCV setting. - */ - bool checkLengthForFCV() const; - - /** * Returns the drop-pending namespace name for this namespace, provided the given optime. * * Example: |