diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-07-12 11:43:48 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-08-01 17:16:14 -0400 |
commit | 2431e1356823d898ef8af16997d6f63b65b385a5 (patch) | |
tree | 6df997de8e8e0378d4a2d711fce1d28be772293b /src/mongo/db/pipeline/document_source_geo_near.h | |
parent | 718cf09aa21b36e9436a675c8645770826078da7 (diff) | |
download | mongo-2431e1356823d898ef8af16997d6f63b65b385a5.tar.gz |
SERVER-29506 Require $changeNotification to be the first stage.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_geo_near.h')
-rw-r--r-- | src/mongo/db/pipeline/document_source_geo_near.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_geo_near.h b/src/mongo/db/pipeline/document_source_geo_near.h index 5178a89c18a..5df25d6c1c6 100644 --- a/src/mongo/db/pipeline/document_source_geo_near.h +++ b/src/mongo/db/pipeline/document_source_geo_near.h @@ -46,9 +46,15 @@ public: */ Pipeline::SourceContainer::iterator doOptimizeAt(Pipeline::SourceContainer::iterator itr, Pipeline::SourceContainer* container) final; - InitialSourceType getInitialSourceType() const final { - return InitialSourceType::kInitialSource; + + StageConstraints constraints() const final { + StageConstraints constraints; + constraints.requiredPosition = StageConstraints::PositionRequirement::kFirst; + constraints.requiresInputDocSource = false; + constraints.isAllowedInsideFacetStage = false; + return constraints; } + Value serialize(boost::optional<ExplainOptions::Verbosity> explain = boost::none) const final; BSONObjSet getOutputSorts() final { return SimpleBSONObjComparator::kInstance.makeBSONObjSet( |