diff options
author | Waley Chen <waleycz@gmail.com> | 2016-09-15 11:14:53 -0400 |
---|---|---|
committer | Waley Chen <waleycz@gmail.com> | 2016-09-15 11:14:53 -0400 |
commit | a657b38c56b34ad573d45ecb4f80772297b9e5d9 (patch) | |
tree | f213d6b98bb51b64dc877038f84d960730b949e2 | |
parent | 6815c80e30dc0cf534adc094f1db300f4db6ee43 (diff) | |
download | mongo-a657b38c56b34ad573d45ecb4f80772297b9e5d9.tar.gz |
SERVER-22688 Provide a setParameter and shell option to control the js heap limit
lint fix
-rw-r--r-- | jstests/core/jsHeapLimit.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/core/jsHeapLimit.js b/jstests/core/jsHeapLimit.js index 4256c04c3ae..51d9cdc7b7e 100644 --- a/jstests/core/jsHeapLimit.js +++ b/jstests/core/jsHeapLimit.js @@ -8,8 +8,12 @@ var assertLimit = function() { assert.eq(999, getJSHeapLimitMB()); }; - var exitCode = runMongoProgram( - "mongo", conn.host, "--jsHeapLimitMB", 999, "--eval", "(" + assertLimit.toString() + ")();"); + var exitCode = runMongoProgram("mongo", + conn.host, + "--jsHeapLimitMB", + 999, + "--eval", + "(" + assertLimit.toString() + ")();"); assert.eq(0, exitCode); // verify the JSHeapLimitMB set from Mongod |