summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_workloads/update_simple.js
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /jstests/concurrency/fsm_workloads/update_simple.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'jstests/concurrency/fsm_workloads/update_simple.js')
-rw-r--r--jstests/concurrency/fsm_workloads/update_simple.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/jstests/concurrency/fsm_workloads/update_simple.js b/jstests/concurrency/fsm_workloads/update_simple.js
index 85f877e6090..cb4adf926c9 100644
--- a/jstests/concurrency/fsm_workloads/update_simple.js
+++ b/jstests/concurrency/fsm_workloads/update_simple.js
@@ -24,10 +24,7 @@ var $config = (function() {
}
};
- var transitions = {
- set: {set: 0.5, unset: 0.5},
- unset: {set: 0.5, unset: 0.5}
- };
+ var transitions = {set: {set: 0.5, unset: 0.5}, unset: {set: 0.5, unset: 0.5}};
function setup(db, collName, cluster) {
// index on 'value', the field being updated
@@ -83,13 +80,9 @@ var $config = (function() {
var value = Random.randInt(5);
var updater = {};
- updater[set ? '$set' : '$unset'] = {
- value: value
- };
+ updater[set ? '$set' : '$unset'] = {value: value};
- var query = {
- _id: docIndex
- };
+ var query = {_id: docIndex};
var res = this.doUpdate(db, collName, query, updater);
this.assertResult(db, res);
},