summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/geo_near.cpp
diff options
context:
space:
mode:
authorMartin Neupauer <martin.neupauer@mongodb.com>2019-08-29 13:22:09 +0000
committerevergreen <evergreen@mongodb.com>2019-08-29 13:22:09 +0000
commit3cdbdedce431fbc71a5eb89b689268e783d73bd4 (patch)
tree327109bb734c91384f13f5acee6b71c917ea1fd3 /src/mongo/db/exec/geo_near.cpp
parentffd486c3ff049abc9f8a2c76b3e2b9dea970c19b (diff)
downloadmongo-3cdbdedce431fbc71a5eb89b689268e783d73bd4.tar.gz
SERVER-42181 Make WorkingSetMember hold Document instead of BSONObj
SERVER-42157 Unowned mode for Document/Value
Diffstat (limited to 'src/mongo/db/exec/geo_near.cpp')
-rw-r--r--src/mongo/db/exec/geo_near.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/geo_near.cpp b/src/mongo/db/exec/geo_near.cpp
index ef1fb4e2aa9..d9e7749e5fc 100644
--- a/src/mongo/db/exec/geo_near.cpp
+++ b/src/mongo/db/exec/geo_near.cpp
@@ -151,7 +151,7 @@ static StatusWith<double> computeGeoNearDistance(const GeoNearParams& nearParams
// Extract all the geometries out of this document for the near query
std::vector<std::unique_ptr<StoredGeometry>> geometries;
- extractGeometries(member->obj.value(), nearParams.nearQuery->field, &geometries);
+ extractGeometries(member->doc.value().toBson(), nearParams.nearQuery->field, &geometries);
// Compute the minimum distance of all the geometries in the document
double minDistance = -1;