diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/btreedel.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/btreedel.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/noPassthroughWithMongod/btreedel.js b/jstests/noPassthroughWithMongod/btreedel.js index 89af6aa7d5d..824eb3e63a6 100644 --- a/jstests/noPassthroughWithMongod/btreedel.js +++ b/jstests/noPassthroughWithMongod/btreedel.js @@ -3,11 +3,9 @@ t = db.foo;
t.remove({});
-var bulk = t.initializeUnorderedBulkOp();
for (var i = 0; i < 1000000; i++) {
- bulk.insert({ _id: i, x: 'a b' });
+ t.insert({ _id: i, x: 'a b' });
}
-assert.writeOK(bulk.execute());
print("1 insert done count: " + t.count());
|