summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_key_validate.cpp
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2018-10-03 17:38:54 +0100
committerBernard Gorman <bernard.gorman@gmail.com>2018-10-03 22:36:02 +0100
commitb73a042894580032505768ea94c58348c5e4bc79 (patch)
tree1a09f75d0a9ab5336df587d1db2a71c02d383afb /src/mongo/db/catalog/index_key_validate.cpp
parent3077fb640b0df0b8d769aafd0d38e67d3307198b (diff)
downloadmongo-b73a042894580032505768ea94c58348c5e4bc79.tar.gz
SERVER-36198 Remove 'internalQueryAllowAllPathsIndexes' server parameter
Diffstat (limited to 'src/mongo/db/catalog/index_key_validate.cpp')
-rw-r--r--src/mongo/db/catalog/index_key_validate.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/catalog/index_key_validate.cpp b/src/mongo/db/catalog/index_key_validate.cpp
index d8bda8fec86..f5b090b40a6 100644
--- a/src/mongo/db/catalog/index_key_validate.cpp
+++ b/src/mongo/db/catalog/index_key_validate.cpp
@@ -121,13 +121,6 @@ Status validateKeyPattern(const BSONObj& key, IndexDescriptor::IndexVersion inde
code, mongoutils::str::stream() << "Unknown index plugin '" << pluginName << '\'');
}
- if (pluginName == IndexNames::WILDCARD && !internalQueryAllowAllPathsIndexes.load()) {
- // TODO: SERVER-36198 remove this check once wildcard indexes are complete.
- return Status(
- ErrorCodes::NotImplemented,
- "Cannot use a wildcard index without enabling internalQueryAllowAllPathsIndexes");
- }
-
BSONObjIterator it(key);
while (it.more()) {
BSONElement keyElement = it.next();