summaryrefslogtreecommitdiff
path: root/jstests/sharding/movechunk_include.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/movechunk_include.js')
-rw-r--r--jstests/sharding/movechunk_include.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/sharding/movechunk_include.js b/jstests/sharding/movechunk_include.js
index e74c6c4bf4d..8ffa1664526 100644
--- a/jstests/sharding/movechunk_include.js
+++ b/jstests/sharding/movechunk_include.js
@@ -13,16 +13,16 @@ function setupMoveChunkTest(st) {
str += "asdasdsdasdasdasdas";
}
- var data = num = 0;
+ var data = 0;
+ var num = 0;
//Insert till you get to 10MB of data
+ var bulk = testcoll.initializeUnorderedBulkOp();
while ( data < ( 1024 * 1024 * 10 ) ) {
- testcoll.insert( { _id : num++ , s : str } )
- data += str.length
+ bulk.insert({ _id: num++, s: str });
+ data += str.length;
}
-
- //Flush and wait
- testdb.getLastError()
+ assert.writeOK(bulk.execute());
var stats = st.chunkCounts( "foo" )
var to = ""