diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_geo_near.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_geo_near.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_geo_near.cpp b/src/mongo/db/pipeline/document_source_geo_near.cpp index 61f04889ffa..5081865eeba 100644 --- a/src/mongo/db/pipeline/document_source_geo_near.cpp +++ b/src/mongo/db/pipeline/document_source_geo_near.cpp @@ -225,8 +225,8 @@ DepsTracker::State DocumentSourceGeoNear::getDependencies(DepsTracker* deps) con // produced by this stage, and we could inform the query system that it need not include it in // its response. For now, assume that we require the entire document as well as the appropriate // geoNear metadata. - deps->setNeedsMetadata(DepsTracker::MetadataType::GEO_NEAR_DISTANCE, true); - deps->setNeedsMetadata(DepsTracker::MetadataType::GEO_NEAR_POINT, needsGeoNearPoint()); + deps->setNeedsMetadata(DocumentMetadataFields::kGeoNearDist, true); + deps->setNeedsMetadata(DocumentMetadataFields::kGeoNearPoint, needsGeoNearPoint()); deps->needWholeDocument = true; return DepsTracker::State::EXHAUSTIVE_FIELDS; |