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:
commit
e144a03a48
@ -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 )
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user