diff options
author | Xinhao Zhang <xinhao.zhang@mongodb.com> | 2019-08-16 20:43:48 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-16 20:43:48 +0000 |
commit | f83f5784ea56d8158f8da654a964d1cd1d142648 (patch) | |
tree | d3cac5b51ef6ed7b1f727773a155fc17af3c3694 /src/mongo/db/pipeline/document_source_graph_lookup.cpp | |
parent | 25418e659b3ed6d09a41c147683fa9493d1ffa29 (diff) | |
download | mongo-f83f5784ea56d8158f8da654a964d1cd1d142648.tar.gz |
SERVER-42584 PlanStageStats in aggregation
Diffstat (limited to 'src/mongo/db/pipeline/document_source_graph_lookup.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_graph_lookup.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/db/pipeline/document_source_graph_lookup.cpp b/src/mongo/db/pipeline/document_source_graph_lookup.cpp index c96ac4b4114..ea781c2b1b9 100644 --- a/src/mongo/db/pipeline/document_source_graph_lookup.cpp +++ b/src/mongo/db/pipeline/document_source_graph_lookup.cpp @@ -84,12 +84,10 @@ REGISTER_DOCUMENT_SOURCE(graphLookup, DocumentSourceGraphLookUp::createFromBson); const char* DocumentSourceGraphLookUp::getSourceName() const { - return "$graphLookup"; + return kStageName.rawData(); } -DocumentSource::GetNextResult DocumentSourceGraphLookUp::getNext() { - pExpCtx->checkForInterrupt(); - +DocumentSource::GetNextResult DocumentSourceGraphLookUp::doGetNext() { if (_unwind) { return getNextUnwound(); } @@ -445,7 +443,7 @@ DocumentSourceGraphLookUp::DocumentSourceGraphLookUp( boost::optional<FieldPath> depthField, boost::optional<long long> maxDepth, boost::optional<boost::intrusive_ptr<DocumentSourceUnwind>> unwindSrc) - : DocumentSource(expCtx), + : DocumentSource(kStageName, expCtx), _from(std::move(from)), _as(std::move(as)), _connectFromField(std::move(connectFromField)), |