summaryrefslogtreecommitdiff
path: root/src/mongo/db/fts/fts_spec.cpp
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2018-08-27 13:06:38 -0400
committerDianna Hohensee <dianna.hohensee@10gen.com>2018-08-29 16:47:09 -0400
commit4cb0742947dabee476c9979cae39c728a21568d5 (patch)
tree8ec6baacaab48a11b20eae4781f32be1bdad6ec2 /src/mongo/db/fts/fts_spec.cpp
parentaa36a9e8ad8c98e828f1b53966672b368d973380 (diff)
downloadmongo-4cb0742947dabee476c9979cae39c728a21568d5.tar.gz
SERVER-36015 Remove references to system.namespaces and system.indexes
Diffstat (limited to 'src/mongo/db/fts/fts_spec.cpp')
-rw-r--r--src/mongo/db/fts/fts_spec.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/fts/fts_spec.cpp b/src/mongo/db/fts/fts_spec.cpp
index 9022b72bb0b..5225e46106d 100644
--- a/src/mongo/db/fts/fts_spec.cpp
+++ b/src/mongo/db/fts/fts_spec.cpp
@@ -66,10 +66,9 @@ bool validateOverride(const string& override) {
}
FTSSpec::FTSSpec(const BSONObj& indexInfo) {
- // indexInfo is a text index spec. Text index specs pass through fixSpec() before
- // being saved to the system.indexes collection. fixSpec() enforces a schema, such that
- // required fields must exist and be of the correct type (e.g. weights,
- // textIndexVersion).
+ // indexInfo is a text index spec. Text index specs pass through fixSpec() before being
+ // persisted. fixSpec() enforces a schema, such that required fields must exist and be of the
+ // correct type (e.g. weights, textIndexVersion).
massert(16739, "found invalid spec for text index", indexInfo["weights"].isABSONObj());
BSONElement textIndexVersionElt = indexInfo["textIndexVersion"];
massert(17367,