summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher
diff options
context:
space:
mode:
authorEric Cox <eric.cox@mongodb.com>2021-05-18 21:58:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-07 13:53:48 +0000
commit9dc70d39da791265f9fb78ba7f9742403af9676a (patch)
treee6205561d2ef02b08b225bfbeafe9e8ad3cea265 /src/mongo/db/matcher
parent2d3200ce27c7a71b1f9157e273596e78ec07db97 (diff)
downloadmongo-9dc70d39da791265f9fb78ba7f9742403af9676a.tar.gz
SERVER-56265 Cleanly fail unsupported queries on timeseries collections
Diffstat (limited to 'src/mongo/db/matcher')
-rw-r--r--src/mongo/db/matcher/expression_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_parser.cpp b/src/mongo/db/matcher/expression_parser.cpp
index 0dc18343ca5..798c5e59934 100644
--- a/src/mongo/db/matcher/expression_parser.cpp
+++ b/src/mongo/db/matcher/expression_parser.cpp
@@ -1164,7 +1164,7 @@ StatusWithMatchExpression parseGeo(StringData name,
invariant(PathAcceptingKeyword::GEO_NEAR == type);
if ((allowedFeatures & MatchExpressionParser::AllowedFeatures::kGeoNear) == 0u) {
- return {Status(ErrorCodes::BadValue,
+ return {Status(ErrorCodes::Error(5626500),
"$geoNear, $near, and $nearSphere are not allowed in this context")};
}