diff options
Diffstat (limited to 'jstests/replsets/initial_sync_ambiguous_index.js')
-rw-r--r-- | jstests/replsets/initial_sync_ambiguous_index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync_ambiguous_index.js b/jstests/replsets/initial_sync_ambiguous_index.js index 2398243f301..c50324db935 100644 --- a/jstests/replsets/initial_sync_ambiguous_index.js +++ b/jstests/replsets/initial_sync_ambiguous_index.js @@ -32,7 +32,7 @@ rst.initiate(); const primaryColl = rst.getPrimary().getDB(dbName).getCollection(collectionName); // Create the index. -primaryColl.createIndex({"a.0": 1}); +primaryColl.ensureIndex({"a.0": 1}); // Insert the initial document set. for (let i = 0; i < initialDocs; ++i) { |