diff options
author | David Storch <david.storch@10gen.com> | 2016-07-01 15:35:39 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-07-14 23:41:20 -0400 |
commit | 5e504b81ab84274db75f868cf1559cee015beddd (patch) | |
tree | 38ffd9247f3c95d47191065fa6e6c15a26c44289 /src/mongo/db/pipeline/document_source_project.cpp | |
parent | 751f67f4a6ff89f7b8b2475301e1976f4f583f95 (diff) | |
download | mongo-5e504b81ab84274db75f868cf1559cee015beddd.tar.gz |
SERVER-24508 DocumentComparator and ValueComparator
- Changes the Document/Value library to require comparisons
to be made in the context of a comparator object. This is
prep work for full collation support in the aggregation
system.
- Adds injectExpressionContext() to propagate the
ExpressionContext containing the comparator object to all
DocumentSource, Accumulator, and Expression instances
involved in the Pipeline.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_project.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_project.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_project.cpp b/src/mongo/db/pipeline/document_source_project.cpp index f6b70b840bd..5ad0876a7b8 100644 --- a/src/mongo/db/pipeline/document_source_project.cpp +++ b/src/mongo/db/pipeline/document_source_project.cpp @@ -116,4 +116,9 @@ DocumentSource::GetDepsReturn DocumentSourceProject::getDependencies(DepsTracker return SEE_NEXT; } } + +void DocumentSourceProject::doInjectExpressionContext() { + _parsedProject->injectExpressionContext(pExpCtx); } + +} // namespace mongo |