0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Merge branch 'master' of github.com:mongodb/mongo

This commit is contained in:
dwight 2011-06-20 10:33:25 -04:00
commit e144a03a48

View File

@ -726,7 +726,14 @@ ShardingTest.prototype.shardGo = function( collName , key , split , move , dbNam
this.s.adminCommand( { shardcollection : c , key : key } );
this.s.adminCommand( { split : c , middle : split } );
this.s.adminCommand( { movechunk : c , find : move , to : this.getOther( this.getServer( dbName ) ).name } );
var result = null
for( var i = 0; i < 5; i++ ){
result = this.s.adminCommand( { movechunk : c , find : move , to : this.getOther( this.getServer( dbName ) ).name } );
if( result.ok ) break;
sleep( 5 * 1000 );
}
assert( result.ok )
};