summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/dependencies.cpp
diff options
context:
space:
mode:
authorIan Boros <ian.boros@mongodb.com>2019-10-01 20:47:51 +0000
committerevergreen <evergreen@mongodb.com>2019-10-01 20:47:51 +0000
commite77b9df00d5a269c8eb4955efef2c21c42819306 (patch)
tree27a6d394151b0fb72fe34f18a6263629f0e5c424 /src/mongo/db/pipeline/dependencies.cpp
parent6a0a923c9ddd7dfe83dfc0ae12fbfb0e7665bfbc (diff)
downloadmongo-e77b9df00d5a269c8eb4955efef2c21c42819306.tar.gz
SERVER-43202 propagate errors from interrupts during yielding
Diffstat (limited to 'src/mongo/db/pipeline/dependencies.cpp')
-rw-r--r--src/mongo/db/pipeline/dependencies.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/dependencies.cpp b/src/mongo/db/pipeline/dependencies.cpp
index b736e7776b7..c9482c9f0e1 100644
--- a/src/mongo/db/pipeline/dependencies.cpp
+++ b/src/mongo/db/pipeline/dependencies.cpp
@@ -102,6 +102,11 @@ BSONObj DepsTracker::toProjection() const {
}
last = field + '.';
+
+ // We should only have dependencies on fields that are valid in aggregation. Create a
+ // FieldPath to check this.
+ FieldPath fieldPath(field);
+
bb.append(field, 1);
}