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_tee_consumer.cpp | |
parent | 25418e659b3ed6d09a41c147683fa9493d1ffa29 (diff) | |
download | mongo-f83f5784ea56d8158f8da654a964d1cd1d142648.tar.gz |
SERVER-42584 PlanStageStats in aggregation
Diffstat (limited to 'src/mongo/db/pipeline/document_source_tee_consumer.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_tee_consumer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source_tee_consumer.cpp b/src/mongo/db/pipeline/document_source_tee_consumer.cpp index c63aa579b08..59910b8f5ca 100644 --- a/src/mongo/db/pipeline/document_source_tee_consumer.cpp +++ b/src/mongo/db/pipeline/document_source_tee_consumer.cpp @@ -45,7 +45,7 @@ using boost::intrusive_ptr; DocumentSourceTeeConsumer::DocumentSourceTeeConsumer(const intrusive_ptr<ExpressionContext>& expCtx, size_t facetId, const intrusive_ptr<TeeBuffer>& bufferSource) - : DocumentSource(expCtx), _facetId(facetId), _bufferSource(bufferSource) {} + : DocumentSource(kStageName, expCtx), _facetId(facetId), _bufferSource(bufferSource) {} boost::intrusive_ptr<DocumentSourceTeeConsumer> DocumentSourceTeeConsumer::create( const boost::intrusive_ptr<ExpressionContext>& expCtx, @@ -54,8 +54,7 @@ boost::intrusive_ptr<DocumentSourceTeeConsumer> DocumentSourceTeeConsumer::creat return new DocumentSourceTeeConsumer(expCtx, facetId, bufferSource); } -DocumentSource::GetNextResult DocumentSourceTeeConsumer::getNext() { - pExpCtx->checkForInterrupt(); +DocumentSource::GetNextResult DocumentSourceTeeConsumer::doGetNext() { return _bufferSource->getNext(_facetId); } |