Permalink
Browse files

turn off balancer during test

  • Loading branch information...
erh committed Jul 16, 2012
1 parent 7033636 commit 625863dc70e450e107ecc240b9fdc24bcad3742d
Showing with 2 additions and 0 deletions.
  1. +2 −0 jstests/sharding/shard6.js
@@ -4,6 +4,8 @@ summary = "";
s = new ShardingTest( "shard6" , 2 , 0 , 2 );
+s.config.settings.update( { _id: "balancer" }, { $set : { stopped: true } } , true );
+
s.adminCommand( { enablesharding : "test" } );
s.adminCommand( { shardcollection : "test.data" , key : { num : 1 } } );

0 comments on commit 625863d

Please sign in to comment.