summaryrefslogtreecommitdiff
path: root/src/mongo/db/fts
diff options
context:
space:
mode:
authorDaniel Solnik <dansolnik@gmail.com>2019-06-24 14:37:25 -0400
committerDaniel Solnik <dansolnik@gmail.com>2019-06-27 11:50:39 -0400
commitf8d39ba6406329661d44f0136863b83c48b39f6a (patch)
treed724ec8ad333546121265b1fc801c3b334a02380 /src/mongo/db/fts
parent6d1a66e995c1a72d406d5209aa6ea5dff6faaa12 (diff)
downloadmongo-f8d39ba6406329661d44f0136863b83c48b39f6a.tar.gz
SERVER-36440 remove code and tests about text index limit
Diffstat (limited to 'src/mongo/db/fts')
-rw-r--r--src/mongo/db/fts/fts_index_format.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mongo/db/fts/fts_index_format.cpp b/src/mongo/db/fts/fts_index_format.cpp
index 2bcf35ff398..d9fda7efa14 100644
--- a/src/mongo/db/fts/fts_index_format.cpp
+++ b/src/mongo/db/fts/fts_index_format.cpp
@@ -159,21 +159,7 @@ void FTSIndexFormat::getKeys(const FTSSpec& spec, const BSONObj& obj, BSONObjSet
// create index keys from raw scores
// only 1 per string
-
- // TODO SERVER-36440: Completely remove this limit in 4.3.
- if (serverGlobalParams.featureCompatibility.isVersionInitialized() &&
- serverGlobalParams.featureCompatibility.getVersion() ==
- ServerGlobalParams::FeatureCompatibility::Version::kFullyDowngradedTo40) {
- uassert(16732,
- str::stream() << "too many unique keys for a single document to"
- << " have a text index, max is "
- << term_freqs.size()
- << obj["_id"],
- term_freqs.size() <= 400000);
- }
-
long long keyBSONSize = 0;
- const int MaxKeyBSONSizeMB = 4;
for (TermFrequencyMap::const_iterator i = term_freqs.begin(); i != term_freqs.end(); ++i) {
const string& term = i->first;
@@ -198,18 +184,6 @@ void FTSIndexFormat::getKeys(const FTSSpec& spec, const BSONObj& obj, BSONObjSet
keys->insert(res);
keyBSONSize += res.objsize();
-
- // TODO SERVER-36440: Completely remove this limit in 4.3.
- if (serverGlobalParams.featureCompatibility.isVersionInitialized() &&
- serverGlobalParams.featureCompatibility.getVersion() ==
- ServerGlobalParams::FeatureCompatibility::Version::kFullyDowngradedTo40) {
- uassert(16733,
- str::stream() << "trying to index text where term list is too big, max is "
- << MaxKeyBSONSizeMB
- << "mb "
- << obj["_id"],
- keyBSONSize <= (MaxKeyBSONSizeMB * 1024 * 1024));
- }
}
}