@@ -7,12 +7,12 @@ var s = new ShardingTest({ name: "multcollections",
77 other : { chunkSize : 1 , enableBalancer : true } } ) ;
88
99s . adminCommand ( { enablesharding : "test" } ) ;
10- db = s . getDB ( "test" )
10+ db = s . getDB ( "test" ) ;
1111s . ensurePrimaryShard ( 'test' , 'shard0001' ) ;
1212
13- N = 100000
13+ N = 100000 ;
1414
15- S = ""
15+ S = "" ;
1616while ( S . length < 500 )
1717 S += "123123312312" ;
1818
@@ -25,7 +25,7 @@ for ( i=0; i<N; i++ ){
2525assert . writeOK ( bulk . execute ( ) ) ;
2626assert . writeOK ( bulk2 . execute ( ) ) ;
2727
28- db . printShardingStatus ( )
28+ db . printShardingStatus ( ) ;
2929
3030function mytest ( coll , i , loopNumber ) {
3131 x = coll . find ( { _id : i } ) . explain ( ) ;
@@ -34,15 +34,15 @@ function mytest( coll , i , loopNumber ){
3434 throw Error ( "can't find " + i + " in " + coll . getName ( ) + " on loopNumber: " + loopNumber + " explain: " + tojson ( x ) ) ;
3535}
3636
37- loopNumber = 0
37+ loopNumber = 0 ;
3838while ( 1 ) {
3939 for ( i = 0 ; i < N ; i ++ ) {
4040 mytest ( db . foo , i , loopNumber ) ;
4141 mytest ( db . bar , i , loopNumber ) ;
4242 if ( i % 1000 == 0 )
43- print ( i )
43+ print ( i ) ;
4444 }
45- db . printShardingStatus ( )
45+ db . printShardingStatus ( ) ;
4646 loopNumber ++ ;
4747
4848 if ( loopNumber == 1 ) {
@@ -53,7 +53,7 @@ while ( 1 ){
5353 assert ( loopNumber < 1000 , "taking too long" ) ;
5454
5555 if ( s . chunkDiff ( "foo" ) < 12 && s . chunkDiff ( "bar" ) < 12 )
56- break
56+ break ;
5757}
5858
5959s . stop ( ) ;
0 commit comments