summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_workloads/update_inc.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/concurrency/fsm_workloads/update_inc.js')
-rw-r--r--jstests/concurrency/fsm_workloads/update_inc.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/jstests/concurrency/fsm_workloads/update_inc.js b/jstests/concurrency/fsm_workloads/update_inc.js
index 5eedadeedbf..25098d46d4b 100644
--- a/jstests/concurrency/fsm_workloads/update_inc.js
+++ b/jstests/concurrency/fsm_workloads/update_inc.js
@@ -9,7 +9,7 @@
* of increments performed.
*/
-// For isMongod and supportsDocumentLevelConcurrency.
+// For isMongod.
load('jstests/concurrency/fsm_workload_helpers/server_types.js');
var $config = (function() {
@@ -36,10 +36,9 @@ var $config = (function() {
var res = db[collName].update({_id: this.id}, updateDoc);
assertAlways.eq(0, res.nUpserted, tojson(res));
- if (isMongod(db) && supportsDocumentLevelConcurrency(db)) {
- // Storage engines which support document-level concurrency will automatically retry
- // any operations when there are conflicts, so we should always see a matching
- // document.
+ if (isMongod(db)) {
+ // Storage engines will automatically retry any operations when there are conflicts,
+ // so we should always see a matching document.
assertWhenOwnColl.eq(res.nMatched, 1, tojson(res));
if (db.getMongo().writeMode() === 'commands') {
assertWhenOwnColl.eq(res.nModified, 1, tojson(res));