diff options
author | Waley Chen <waleycz@gmail.com> | 2016-09-13 18:13:34 -0400 |
---|---|---|
committer | Waley Chen <waleycz@gmail.com> | 2016-09-13 18:13:34 -0400 |
commit | 6471618952c8727bc5b06039ed2cf861e1a36436 (patch) | |
tree | e2b5ab9461919b265a7d929d0e22f457b7409671 /src/mongo/shell/shell_options.cpp | |
parent | 955cf8c998a60a8c2a2493dd428dd3d763e90259 (diff) | |
download | mongo-6471618952c8727bc5b06039ed2cf861e1a36436.tar.gz |
Revert "SERVER-22688 Provide a setParameter and shell option to control the js heap limit"
This reverts commit 955cf8c998a60a8c2a2493dd428dd3d763e90259.
Diffstat (limited to 'src/mongo/shell/shell_options.cpp')
-rw-r--r-- | src/mongo/shell/shell_options.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/shell/shell_options.cpp b/src/mongo/shell/shell_options.cpp index 324ad87fa3d..1b378836c35 100644 --- a/src/mongo/shell/shell_options.cpp +++ b/src/mongo/shell/shell_options.cpp @@ -200,9 +200,6 @@ Status addMongoShellOptions(moe::OptionSection* options) { if (!ret.isOK()) return ret; - options->addOptionChaining( - "jsHeapMBLimit", "jsHeapMBLimit", moe::Int, "set the js scope's heap size limit"); - return Status::OK(); } @@ -373,16 +370,6 @@ Status storeMongoShellOptions(const moe::Environment& params, } } - if (params.count("jsHeapMBLimit")) { - int jsHeapMBLimit = params["jsHeapMBLimit"].as<int>(); - if (jsHeapMBLimit <= 0) { - StringBuilder sb; - sb << "ERROR: \"jsHeapMBLimit\" needs to be greater than 0"; - return Status(ErrorCodes::BadValue, sb.str()); - } - shellGlobalParams.jsHeapMBLimit = jsHeapMBLimit; - } - if (shellGlobalParams.url == "*") { StringBuilder sb; sb << "ERROR: " |