summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_workloads/distinct.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/concurrency/fsm_workloads/distinct.js')
-rw-r--r--jstests/concurrency/fsm_workloads/distinct.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workloads/distinct.js b/jstests/concurrency/fsm_workloads/distinct.js
index 2c56372c7d7..2832ea215d3 100644
--- a/jstests/concurrency/fsm_workloads/distinct.js
+++ b/jstests/concurrency/fsm_workloads/distinct.js
@@ -21,7 +21,7 @@ var $config = (function() {
var res = bulk.execute();
assertAlways.commandWorked(res);
assertAlways.eq(this.numDocs, res.nInserted);
- assertAlways.commandWorked(db[this.threadCollName].createIndex({i: 1}));
+ assertAlways.commandWorked(db[this.threadCollName].ensureIndex({i: 1}));
}
function distinct(db, collName) {