summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_libs/worker_thread.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/concurrency/fsm_libs/worker_thread.js')
-rw-r--r--jstests/concurrency/fsm_libs/worker_thread.js37
1 files changed, 16 insertions, 21 deletions
diff --git a/jstests/concurrency/fsm_libs/worker_thread.js b/jstests/concurrency/fsm_libs/worker_thread.js
index 5c6dd771509..7a9bf6b3304 100644
--- a/jstests/concurrency/fsm_libs/worker_thread.js
+++ b/jstests/concurrency/fsm_libs/worker_thread.js
@@ -62,21 +62,20 @@ var workerThread = (function() {
// configurable, enumerable, and writable. To prevent workloads from changing
// the iterations and threadCount properties in their state functions, we redefine
// them here as non-configurable, non-enumerable, and non-writable.
- Object.defineProperties(data,
- {
- 'iterations': {
- configurable: false,
- enumerable: false,
- writable: false,
- value: data.iterations
- },
- 'threadCount': {
- configurable: false,
- enumerable: false,
- writable: false,
- value: data.threadCount
- }
- });
+ Object.defineProperties(data, {
+ 'iterations': {
+ configurable: false,
+ enumerable: false,
+ writable: false,
+ value: data.iterations
+ },
+ 'threadCount': {
+ configurable: false,
+ enumerable: false,
+ writable: false,
+ value: data.threadCount
+ }
+ });
data.tid = args.tid;
configs[workload] = {
@@ -103,9 +102,7 @@ var workerThread = (function() {
Random.setRandomSeed(args.seed);
run(configs);
- return {
- ok: 1
- };
+ return {ok: 1};
} catch (e) {
args.errorLatch.countDown();
return {
@@ -124,8 +121,6 @@ var workerThread = (function() {
}
}
- return {
- main: main
- };
+ return {main: main};
})();