summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline
diff options
context:
space:
mode:
authorKyle Suarez <kyle.suarez@mongodb.com>2022-07-15 13:36:06 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-15 14:05:12 +0000
commit3bf33a7f67667dbe5c1785c2d6a55a19cd17fb4e (patch)
tree476e544108a83cfe993a31f76e523ab0c92e34ef /src/mongo/db/pipeline
parentcf64a5f2c0f959e648c3611c7bc77bb45da1de21 (diff)
downloadmongo-3bf33a7f67667dbe5c1785c2d6a55a19cd17fb4e.tar.gz
SERVER-68062 permit DocumentSourceGeoNearCursor to have secondary collections
Diffstat (limited to 'src/mongo/db/pipeline')
-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);
}