summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/pipeline.cpp
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2018-06-12 13:35:22 +0100
committerBernard Gorman <bernard.gorman@gmail.com>2018-06-22 04:03:41 +0100
commitc798e34f5479c43da70d5f9f7d4919f16e6dbd50 (patch)
treefa2e47d9c74a26fa01874c9cc76a13f6dbc31dbe /src/mongo/db/pipeline/pipeline.cpp
parent04d8939bd9c6776da8b7effe9c4bcaa20591d88f (diff)
downloadmongo-c798e34f5479c43da70d5f9f7d4919f16e6dbd50.tar.gz
SERVER-35329 Package agg projection code for use outside of agg execution
Diffstat (limited to 'src/mongo/db/pipeline/pipeline.cpp')
-rw-r--r--src/mongo/db/pipeline/pipeline.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/pipeline.cpp b/src/mongo/db/pipeline/pipeline.cpp
index dcd8359324f..e97421096d6 100644
--- a/src/mongo/db/pipeline/pipeline.cpp
+++ b/src/mongo/db/pipeline/pipeline.cpp
@@ -487,11 +487,11 @@ DepsTracker Pipeline::getDependencies(DepsTracker::MetadataAvailable metadataAva
bool knowAllMeta = false;
for (auto&& source : _sources) {
DepsTracker localDeps(deps.getMetadataAvailable());
- DocumentSource::GetDepsReturn status = source->getDependencies(&localDeps);
+ DepsTracker::State status = source->getDependencies(&localDeps);
deps.vars.insert(localDeps.vars.begin(), localDeps.vars.end());
- if ((skipFieldsAndMetadataDeps |= (status == DocumentSource::NOT_SUPPORTED))) {
+ if ((skipFieldsAndMetadataDeps |= (status == DepsTracker::State::NOT_SUPPORTED))) {
// Assume this stage needs everything. We may still know something about our
// dependencies if an earlier stage returned EXHAUSTIVE_FIELDS or EXHAUSTIVE_META. If
// this scope has variables, we need to keep enumerating the remaining stages but will
@@ -507,14 +507,14 @@ DepsTracker Pipeline::getDependencies(DepsTracker::MetadataAvailable metadataAva
deps.fields.insert(localDeps.fields.begin(), localDeps.fields.end());
if (localDeps.needWholeDocument)
deps.needWholeDocument = true;
- knowAllFields = status & DocumentSource::EXHAUSTIVE_FIELDS;
+ knowAllFields = status & DepsTracker::State::EXHAUSTIVE_FIELDS;
}
if (!knowAllMeta) {
for (auto&& req : localDeps.getAllRequiredMetadataTypes()) {
deps.setNeedsMetadata(req, true);
}
- knowAllMeta = status & DocumentSource::EXHAUSTIVE_META;
+ knowAllMeta = status & DepsTracker::State::EXHAUSTIVE_META;
}
// If there are variables defined at this pipeline's scope, there may be dependencies upon