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/s/mongos_options.h | |
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/s/mongos_options.h')
-rw-r--r-- | src/mongo/s/mongos_options.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/s/mongos_options.h b/src/mongo/s/mongos_options.h index 97c3bc53e34..a827d04550d 100644 --- a/src/mongo/s/mongos_options.h +++ b/src/mongo/s/mongos_options.h @@ -46,6 +46,9 @@ class Environment; namespace moe = mongo::optionenvironment; struct MongosGlobalParams { + bool scriptingEnabled = true; // Use "security.javascriptEnabled" to set this variable. Or use + // --noscripting which will set it to false. + // The config server connection string ConnectionString configdbs; }; |