summaryrefslogtreecommitdiff
path: root/jstests/concurrency
diff options
context:
space:
mode:
authorMike Grundy <michael.grundy@10gen.com>2016-01-15 15:54:02 -0500
committerMike Grundy <michael.grundy@10gen.com>2016-01-25 12:37:09 -0500
commitf24d9df65354d63e4ed076b92c214c90179bb591 (patch)
treec16351e6121072824cb510ad806a4c26d55e2778 /jstests/concurrency
parent96cef1d7db7749816170bb2e79becb7fe3f2e8ab (diff)
downloadmongo-f24d9df65354d63e4ed076b92c214c90179bb591.tar.gz
SERVER-21421 Update concurrency suite's ThreadManager constructor to provide default executionMode
(cherry picked from commit 23a61625841080dae2cf0e07e7aadad0e1424722)
Diffstat (limited to 'jstests/concurrency')
-rw-r--r--jstests/concurrency/fsm_libs/runner.js2
-rw-r--r--jstests/concurrency/fsm_libs/thread_mgr.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/jstests/concurrency/fsm_libs/runner.js b/jstests/concurrency/fsm_libs/runner.js
index 62df7f62574..09f788a8a59 100644
--- a/jstests/concurrency/fsm_libs/runner.js
+++ b/jstests/concurrency/fsm_libs/runner.js
@@ -596,7 +596,7 @@ var runner = (function() {
var bgWorkloads = executionOptions.backgroundWorkloads;
loadWorkloadContext(bgWorkloads, bgContext, executionOptions,
false /* applyMultipliers */);
- var bgThreadMgr = new ThreadManager(clusterOptions, { composed: false });
+ var bgThreadMgr = new ThreadManager(clusterOptions);
var cluster = new Cluster(clusterOptions);
if (cluster.isSharded()) {
diff --git a/jstests/concurrency/fsm_libs/thread_mgr.js b/jstests/concurrency/fsm_libs/thread_mgr.js
index d2a1cb99243..6952719c173 100644
--- a/jstests/concurrency/fsm_libs/thread_mgr.js
+++ b/jstests/concurrency/fsm_libs/thread_mgr.js
@@ -7,7 +7,7 @@ load('jstests/concurrency/fsm_libs/worker_thread.js'); // for workerThread
* Helper for spawning and joining worker threads.
*/
-var ThreadManager = function(clusterOptions, executionMode) {
+var ThreadManager = function(clusterOptions, executionMode = { composed: false }) {
if (!(this instanceof ThreadManager)) {
return new ThreadManager(clusterOptions, executionMode);
}