summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_geo_near.h
diff options
context:
space:
mode:
authorBrigitte Lamarche <thesisiwbl@gmail.com>2018-12-21 16:16:53 -0500
committerBrigitte Lamarche <thesisiwbl@gmail.com>2019-01-17 15:31:55 -0500
commit21e65b332ed546077d6e54a4c5d43e02ef9dcbcc (patch)
treeeb84dcdd311c32d448d94885b9ad878835fd2c8d /src/mongo/db/pipeline/document_source_geo_near.h
parent2eab0e010d383c974cd51eaf7ee61144e0c8ccfe (diff)
downloadmongo-21e65b332ed546077d6e54a4c5d43e02ef9dcbcc.tar.gz
SERVER-38716 fix $geoNear and $text within $lookup sub-pipeline
Diffstat (limited to 'src/mongo/db/pipeline/document_source_geo_near.h')
-rw-r--r--src/mongo/db/pipeline/document_source_geo_near.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_geo_near.h b/src/mongo/db/pipeline/document_source_geo_near.h
index 13f915afd2f..fa9989fe5c7 100644
--- a/src/mongo/db/pipeline/document_source_geo_near.h
+++ b/src/mongo/db/pipeline/document_source_geo_near.h
@@ -64,7 +64,8 @@ public:
* executing a pipeline, so this method should never be called.
*/
GetNextResult getNext() final {
- MONGO_UNREACHABLE;
+ // TODO: Replace with a MONGO_UNREACHABLE as part of SERVER-38995.
+ uasserted(51048, "DocumentSourceGeoNear's getNext should never be called");
}
Value serialize(boost::optional<ExplainOptions::Verbosity> explain = boost::none) const final;