summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/parallel_collection_scan.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod/parallel_collection_scan.js')
-rw-r--r--jstests/noPassthroughWithMongod/parallel_collection_scan.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/parallel_collection_scan.js b/jstests/noPassthroughWithMongod/parallel_collection_scan.js
index d745f088376..44e5d361e45 100644
--- a/jstests/noPassthroughWithMongod/parallel_collection_scan.js
+++ b/jstests/noPassthroughWithMongod/parallel_collection_scan.js
@@ -6,10 +6,11 @@ s = "";
while ( s.length < 10000 )
s += ".";
+var bulk = t.initializeUnorderedBulkOp();
for ( i = 0; i < 8000; i++ ) {
- t.insert( { x : i, s : s } );
+ bulk.insert({ x: i, s: s });
}
-
+assert.writeOK(bulk.execute());
function iterateSliced() {
var res = t.runCommand( "parallelCollectionScan", { numCursors : 3 } );