summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2018-11-16 12:30:38 -0500
committerAndrew Morrow <acm@mongodb.com>2018-11-17 11:32:12 -0500
commitc5f382a9aae82c2e87362fb0da3cc1d08e9edbb5 (patch)
tree7fcc8a998d57c1a5712a6f85f55b60cb24ad326d /src/mongo/db
parent9a6fdb54fbbfc0df033a61cb2210f11bf96e3519 (diff)
downloadmongo-c5f382a9aae82c2e87362fb0da3cc1d08e9edbb5.tar.gz
SERVER-34873 Revert "SERVER-33125 Work around codegen error in s390x exception unwinding."
This reverts commit 85b39d411987431a8c37b1de267b167a384ea9b3.
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/pipeline/parsed_aggregation_projection.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mongo/db/pipeline/parsed_aggregation_projection.cpp b/src/mongo/db/pipeline/parsed_aggregation_projection.cpp
index c8fbfb19f16..bf79ce14d10 100644
--- a/src/mongo/db/pipeline/parsed_aggregation_projection.cpp
+++ b/src/mongo/db/pipeline/parsed_aggregation_projection.cpp
@@ -182,23 +182,13 @@ private:
: _rawObj(spec), _policies(policies) {}
/**
- * Parses a single BSONElement, with 'fieldName' representing the path used for projection
- * inclusion or exclusion. This code was broken out into a separate function as a workaround for
- * SERVER-33125.
- */
- void parseElementWithFieldName(BSONElement elem, StringData fieldName) {
- FieldPath elemPath(fieldName);
- parseElement(elem, elemPath);
- }
-
- /**
* Traverses '_rawObj' to determine the type of projection, populating '_parsedType' in the
* process.
*/
void parse() {
size_t nFields = 0;
for (auto&& elem : _rawObj) {
- parseElementWithFieldName(elem, elem.fieldName());
+ parseElement(elem, FieldPath(elem.fieldName()));
nFields++;
}