diff options
author | David Storch <david.storch@10gen.com> | 2016-10-03 11:17:13 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-10-03 16:13:51 -0400 |
commit | 8758a5c7be68effbc4a1f857787bfb7b201c6389 (patch) | |
tree | 4880b453167dcada211c278dbc34ff095e31d81c /src/mongo/db/pipeline/document_source_replace_root.cpp | |
parent | b8a5742ef7623640eb6977f14e25649bad661208 (diff) | |
download | mongo-8758a5c7be68effbc4a1f857787bfb7b201c6389.tar.gz |
SERVER-25038 add LiteParsedPipeline
This provides a way to do pre-parse validity checks. Full
parsing of the Pipeline must be done under the collection
lock, when the collation is known.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_replace_root.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_replace_root.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_replace_root.cpp b/src/mongo/db/pipeline/document_source_replace_root.cpp index 8d29a5d7c4a..0c1c1a38e8c 100644 --- a/src/mongo/db/pipeline/document_source_replace_root.cpp +++ b/src/mongo/db/pipeline/document_source_replace_root.cpp @@ -35,6 +35,7 @@ #include "mongo/db/jsobj.h" #include "mongo/db/pipeline/document.h" #include "mongo/db/pipeline/expression.h" +#include "mongo/db/pipeline/lite_parsed_document_source.h" #include "mongo/db/pipeline/value.h" namespace mongo { @@ -145,7 +146,9 @@ private: boost::intrusive_ptr<Expression> _newRoot; }; -REGISTER_DOCUMENT_SOURCE(replaceRoot, DocumentSourceReplaceRoot::createFromBson); +REGISTER_DOCUMENT_SOURCE(replaceRoot, + LiteParsedDocumentSourceDefault::parse, + DocumentSourceReplaceRoot::createFromBson); intrusive_ptr<DocumentSource> DocumentSourceReplaceRoot::createFromBson( BSONElement elem, const intrusive_ptr<ExpressionContext>& pExpCtx) { |