diff options
Diffstat (limited to 'jstests/noPassthrough/indexbg_drop.js')
-rw-r--r-- | jstests/noPassthrough/indexbg_drop.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthrough/indexbg_drop.js b/jstests/noPassthrough/indexbg_drop.js index c7ef4245fc5..8b290849965 100644 --- a/jstests/noPassthrough/indexbg_drop.js +++ b/jstests/noPassthrough/indexbg_drop.js @@ -52,8 +52,8 @@ assert.commandWorked( jsTest.log("Starting background indexing for test of: " + tojson(dc)); // Add another index to be sure the drop command works. -primaryDB.getCollection(collection).ensureIndex({b: 1}); -primaryDB.getCollection(collection).ensureIndex({i: 1}, {background: true}); +primaryDB.getCollection(collection).createIndex({b: 1}); +primaryDB.getCollection(collection).createIndex({i: 1}, {background: true}); // Make sure the index build has started on the secondary. IndexBuildTest.waitForIndexBuildToStart(secondDB); |