mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
wait for any current balancing round to finish
This commit is contained in:
parent
d539be5510
commit
89e2cce2c8
@ -59,6 +59,12 @@ assert.soon( function(){
|
||||
|
||||
s.config.settings.update( { _id: "balancer" }, { $set : { stopped: true } } , true );
|
||||
|
||||
sleep( 1000 );
|
||||
|
||||
while ( sh.isBalancerRunning() ){
|
||||
sleep( 1000 );
|
||||
}
|
||||
|
||||
for ( i=0; i<s._rs.length; i++ ){
|
||||
r = s._rs[i];
|
||||
r.test.awaitReplication();
|
||||
|
Loading…
Reference in New Issue
Block a user