diff options
author | Ian Boros <ian.boros@mongodb.com> | 2019-10-01 20:47:51 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-01 20:47:51 +0000 |
commit | e77b9df00d5a269c8eb4955efef2c21c42819306 (patch) | |
tree | 27a6d394151b0fb72fe34f18a6263629f0e5c424 /src/mongo/db/pipeline/dependencies.cpp | |
parent | 6a0a923c9ddd7dfe83dfc0ae12fbfb0e7665bfbc (diff) | |
download | mongo-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.cpp | 5 |
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); } |