diff options
author | James Wahlin <james@mongodb.com> | 2020-01-24 14:15:09 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-07 14:07:37 +0000 |
commit | 0f36fdce71df08aa7c0703bda69a7045f96f41c8 (patch) | |
tree | 8e6f7a5c90b1a69c91a88ac1b07e42fce6d321fb /src/mongo/db/views | |
parent | 3d821c25e2944668b7359a0bf6e586cc8625b9a2 (diff) | |
download | mongo-0f36fdce71df08aa7c0703bda69a7045f96f41c8.tar.gz |
SERVER-45456 Allow JavaScript on mongos
create mode 100644 jstests/noPassthrough/mr_noscripting.js
delete mode 100644 jstests/noPassthroughWithMongod/mr_noscripting.js
create mode 100644 jstests/sharding/agg_js_on_mongos.js
create mode 100644 jstests/sharding/javascript_heap_limit.js
Diffstat (limited to 'src/mongo/db/views')
-rw-r--r-- | src/mongo/db/views/resolved_view.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/views/resolved_view.cpp b/src/mongo/db/views/resolved_view.cpp index 632be798d6a..ff4442dc85e 100644 --- a/src/mongo/db/views/resolved_view.cpp +++ b/src/mongo/db/views/resolved_view.cpp @@ -112,6 +112,7 @@ AggregationRequest ResolvedView::asExpandedViewAggregation( expandedRequest.setBypassDocumentValidation(request.shouldBypassDocumentValidation()); expandedRequest.setAllowDiskUse(request.shouldAllowDiskUse()); expandedRequest.setUseNewUpsert(request.getUseNewUpsert()); + expandedRequest.setIsMapReduceCommand(request.getIsMapReduceCommand()); // Operations on a view must always use the default collation of the view. We must have already // checked that if the user's request specifies a collation, it matches the collation of the |