diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-01-16 12:42:27 -0500 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-01-16 14:16:34 -0500 |
commit | 4eabf1ea6225f444b3b0b3b2fee785aaa306212f (patch) | |
tree | 53fc00f7e31089dcb3ffb4c16f770b0a5468c3b9 /src/mongo/db/pipeline/document_source_lookup_change_post_image_test.cpp | |
parent | 2f788aa745ca1366704b821087225af49ce3285a (diff) | |
download | mongo-4eabf1ea6225f444b3b0b3b2fee785aaa306212f.tar.gz |
Revert "SERVER-32308: Add the ability for a $lookup stage to execute on mongos against a sharded foreign collection"
This reverts commit 7298d273c0497f2720ec1471ad0f4910bff07af4.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_lookup_change_post_image_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_lookup_change_post_image_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/document_source_lookup_change_post_image_test.cpp b/src/mongo/db/pipeline/document_source_lookup_change_post_image_test.cpp index 77feab2f825..175806d5f7e 100644 --- a/src/mongo/db/pipeline/document_source_lookup_change_post_image_test.cpp +++ b/src/mongo/db/pipeline/document_source_lookup_change_post_image_test.cpp @@ -101,16 +101,16 @@ public: } if (opts.attachCursorSource) { - pipeline = attachCursorSourceToPipeline(expCtx, pipeline.getValue().release()); + uassertStatusOK(attachCursorSourceToPipeline(expCtx, pipeline.getValue().get())); } return pipeline; } - StatusWith<std::unique_ptr<Pipeline, PipelineDeleter>> attachCursorSourceToPipeline( - const boost::intrusive_ptr<ExpressionContext>& expCtx, Pipeline* pipeline) final { + Status attachCursorSourceToPipeline(const boost::intrusive_ptr<ExpressionContext>& expCtx, + Pipeline* pipeline) final { pipeline->addInitialSource(DocumentSourceMock::create(_mockResults)); - return std::unique_ptr<Pipeline, PipelineDeleter>(pipeline, PipelineDeleter(expCtx->opCtx)); + return Status::OK(); } boost::optional<Document> lookupSingleDocument( |