summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_workloads/findAndModify_update.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/concurrency/fsm_workloads/findAndModify_update.js')
-rw-r--r--jstests/concurrency/fsm_workloads/findAndModify_update.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/jstests/concurrency/fsm_workloads/findAndModify_update.js b/jstests/concurrency/fsm_workloads/findAndModify_update.js
index c794c755ed9..16aa80b8a33 100644
--- a/jstests/concurrency/fsm_workloads/findAndModify_update.js
+++ b/jstests/concurrency/fsm_workloads/findAndModify_update.js
@@ -18,11 +18,7 @@ var $config = (function() {
var states = (function() {
function makeDoc(tid) {
- return {
- _id: new ObjectId(),
- tid: tid,
- value: 0
- };
+ return {_id: new ObjectId(), tid: tid, value: 0};
}
function init(db, collName) {
@@ -40,7 +36,8 @@ var $config = (function() {
findandmodify: db[collName].getName(),
query: {tid: this.tid},
sort: {value: 1},
- update: {$max: {value: updatedValue}}, new: true
+ update: {$max: {value: updatedValue}},
+ new: true
});
assertAlways.commandWorked(res);
@@ -60,7 +57,8 @@ var $config = (function() {
findandmodify: db[collName].getName(),
query: {tid: this.tid},
sort: {value: -1},
- update: {$min: {value: updatedValue}}, new: true
+ update: {$min: {value: updatedValue}},
+ new: true
});
assertAlways.commandWorked(res);