summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyle Suarez <kyle.suarez@mongodb.com>2022-07-15 13:36:06 +0000
committerKyle Suarez <kyle.suarez@mongodb.com>2022-07-15 19:30:22 +0000
commit7765a294e9b9a1234164cee10218592e3027fcee (patch)
tree9b5d1b8060f19613370919625e96e32cd8c9b221 /src
parente61bf27c2f6a83fed36e5a13c008a32d563babe2 (diff)
downloadmongo-7765a294e9b9a1234164cee10218592e3027fcee.tar.gz
SERVER-68062 permit DocumentSourceGeoNearCursor to have secondary collections
(cherry picked from commit 3bf33a7f67667dbe5c1785c2d6a55a19cd17fb4e)
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/pipeline/document_source_geo_near_cursor.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source_geo_near_cursor.cpp b/src/mongo/db/pipeline/document_source_geo_near_cursor.cpp
index 27e72886225..8de9f300ab9 100644
--- a/src/mongo/db/pipeline/document_source_geo_near_cursor.cpp
+++ b/src/mongo/db/pipeline/document_source_geo_near_cursor.cpp
@@ -77,9 +77,6 @@ DocumentSourceGeoNearCursor::DocumentSourceGeoNearCursor(
_distanceField(std::move(distanceField)),
_locationField(std::move(locationField)),
_distanceMultiplier(distanceMultiplier) {
- tassert(6466203,
- "$geoNear cursor shouldn't have secondary collections",
- collections.getSecondaryCollections().empty());
invariant(_distanceMultiplier >= 0);
}