summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_workloads/update_upsert_multi.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/concurrency/fsm_workloads/update_upsert_multi.js')
-rw-r--r--jstests/concurrency/fsm_workloads/update_upsert_multi.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/jstests/concurrency/fsm_workloads/update_upsert_multi.js b/jstests/concurrency/fsm_workloads/update_upsert_multi.js
index 96d83cb5115..61e7f84f2e9 100644
--- a/jstests/concurrency/fsm_workloads/update_upsert_multi.js
+++ b/jstests/concurrency/fsm_workloads/update_upsert_multi.js
@@ -51,13 +51,10 @@ var $config = (function() {
// because docs with lower i are newer, so they have had fewer
// opportunities to have n incremented.)
var prevN = Infinity;
- db[collName]
- .find({tid: this.tid})
- .sort({i: 1})
- .forEach(function(doc) {
- assertWhenOwnColl.gte(prevN, doc.n);
- prevN = doc.n;
- });
+ db[collName].find({tid: this.tid}).sort({i: 1}).forEach(function(doc) {
+ assertWhenOwnColl.gte(prevN, doc.n);
+ prevN = doc.n;
+ });
}
};