summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_internal_bucket_geo_within.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression_internal_bucket_geo_within.h')
-rw-r--r--src/mongo/db/matcher/expression_internal_bucket_geo_within.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/expression_internal_bucket_geo_within.h b/src/mongo/db/matcher/expression_internal_bucket_geo_within.h
index b46b6c5076c..d2a6202744f 100644
--- a/src/mongo/db/matcher/expression_internal_bucket_geo_within.h
+++ b/src/mongo/db/matcher/expression_internal_bucket_geo_within.h
@@ -70,6 +70,7 @@ public:
: MatchExpression(MatchExpression::INTERNAL_BUCKET_GEO_WITHIN, std::move(annotation)),
_geoContainer(container),
_indexField("data." + field),
+ _fieldRef(_indexField),
_field(std::move(field)) {}
void debugString(StringBuilder& debug, int indentationLevel) const final;
@@ -127,8 +128,7 @@ public:
}
const FieldRef* fieldRef() const final {
- MONGO_UNREACHABLE_TASSERT(5837104);
- return nullptr;
+ return &_fieldRef;
}
void acceptVisitor(MatchExpressionMutableVisitor* visitor) final {
@@ -155,6 +155,7 @@ private:
std::shared_ptr<GeometryContainer> _geoContainer;
std::string _indexField;
+ FieldRef _fieldRef;
std::string _field;
};