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