summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/indexbg_interrupts.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod/indexbg_interrupts.js')
-rw-r--r--jstests/noPassthroughWithMongod/indexbg_interrupts.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/noPassthroughWithMongod/indexbg_interrupts.js b/jstests/noPassthroughWithMongod/indexbg_interrupts.js
index f6f1d426161..09c75056ca2 100644
--- a/jstests/noPassthroughWithMongod/indexbg_interrupts.js
+++ b/jstests/noPassthroughWithMongod/indexbg_interrupts.js
@@ -66,11 +66,9 @@ for (var idx = 0; idx < dropAction.length; idx++) {
// set up collections
masterDB.dropDatabase();
jsTest.log("creating test data " + size + " documents");
- var bulk = masterDB.getCollection(collection).initializeUnorderedBulkOp();
for(var i = 0; i < size; ++i ) {
- bulk.insert({ i: i });
+ masterDB.getCollection(collection).save( {i:i} );
}
- assert.writeOK(bulk.execute());
jsTest.log("Starting background indexing for test of: " + JSON.stringify(dc));
masterDB.getCollection(collection).ensureIndex( {i:1}, {background:true} );