summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source.h
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2017-06-27 13:29:02 -0400
committerCharlie Swanson <charlie.swanson@mongodb.com>2017-08-01 17:16:14 -0400
commitad30a49a33b8773cbc07388bb257d605cbd6aa12 (patch)
tree3707869546caa93ed42efd29cc8404c8f36f9e4a /src/mongo/db/pipeline/document_source.h
parent2431e1356823d898ef8af16997d6f63b65b385a5 (diff)
downloadmongo-ad30a49a33b8773cbc07388bb257d605cbd6aa12.tar.gz
SERVER-29135 Add post-image lookup to $changeNotification
This patch only adds support on an unsharded collection.
Diffstat (limited to 'src/mongo/db/pipeline/document_source.h')
-rw-r--r--src/mongo/db/pipeline/document_source.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source.h b/src/mongo/db/pipeline/document_source.h
index 2545f02d8de..383cd56e35f 100644
--- a/src/mongo/db/pipeline/document_source.h
+++ b/src/mongo/db/pipeline/document_source.h
@@ -85,7 +85,7 @@ class Document;
MONGO_INITIALIZER(addToDocSourceParserMap_##key)(InitializerContext*) { \
auto fullParserWrapper = [](BSONElement stageSpec, \
const boost::intrusive_ptr<ExpressionContext>& expCtx) { \
- return std::vector<boost::intrusive_ptr<DocumentSource>>{ \
+ return std::list<boost::intrusive_ptr<DocumentSource>>{ \
(fullParser)(stageSpec, expCtx)}; \
}; \
LiteParsedDocumentSource::registerParser("$" #key, liteParser); \
@@ -115,7 +115,7 @@ class Document;
class DocumentSource : public IntrusiveCounterUnsigned {
public:
- using Parser = stdx::function<std::vector<boost::intrusive_ptr<DocumentSource>>(
+ using Parser = stdx::function<std::list<boost::intrusive_ptr<DocumentSource>>(
BSONElement, const boost::intrusive_ptr<ExpressionContext>&)>;
/**
@@ -303,7 +303,7 @@ public:
/**
* Create a DocumentSource pipeline stage from 'stageObj'.
*/
- static std::vector<boost::intrusive_ptr<DocumentSource>> parse(
+ static std::list<boost::intrusive_ptr<DocumentSource>> parse(
const boost::intrusive_ptr<ExpressionContext>& expCtx, BSONObj stageObj);
/**