diff options
Diffstat (limited to 'jstests/concurrency/fsm_workloads/findAndModify_remove.js')
-rw-r--r-- | jstests/concurrency/fsm_workloads/findAndModify_remove.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/concurrency/fsm_workloads/findAndModify_remove.js b/jstests/concurrency/fsm_workloads/findAndModify_remove.js index ea89c971ff2..b33e67b2e01 100644 --- a/jstests/concurrency/fsm_workloads/findAndModify_remove.js +++ b/jstests/concurrency/fsm_workloads/findAndModify_remove.js @@ -9,7 +9,7 @@ var $config = (function() { var data = { - shardKey: { tid: 1 } + shardKey: {tid: 1} }; var states = (function() { @@ -19,14 +19,14 @@ var $config = (function() { } function insertAndRemove(db, collName) { - var res = db[collName].insert({ tid: this.tid, value: this.iter }); + var res = db[collName].insert({tid: this.tid, value: this.iter}); assertAlways.writeOK(res); assertAlways.eq(1, res.nInserted); res = db.runCommand({ findandmodify: db[collName].getName(), - query: { tid: this.tid }, - sort: { iter: -1 }, + query: {tid: this.tid}, + sort: {iter: -1}, remove: true }); assertAlways.commandWorked(res); @@ -50,8 +50,8 @@ var $config = (function() { })(); var transitions = { - init: { insertAndRemove: 1 }, - insertAndRemove: { insertAndRemove: 1 } + init: {insertAndRemove: 1}, + insertAndRemove: {insertAndRemove: 1} }; return { |