diff options
Diffstat (limited to 'jstests/concurrency/fsm_workloads/update_rename.js')
-rw-r--r-- | jstests/concurrency/fsm_workloads/update_rename.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workloads/update_rename.js b/jstests/concurrency/fsm_workloads/update_rename.js index c542382fc89..f76bbd5b81b 100644 --- a/jstests/concurrency/fsm_workloads/update_rename.js +++ b/jstests/concurrency/fsm_workloads/update_rename.js @@ -43,7 +43,7 @@ var $config = (function() { fieldNames.slice(1).forEach(function(fieldName) { var indexSpec = {}; indexSpec[fieldName] = 1; - assertAlways.commandWorked(db[collName].ensureIndex(indexSpec)); + assertAlways.commandWorked(db[collName].createIndex(indexSpec)); }); // numDocs should be much less than threadCount, to make more threads use the same docs. |