0
0
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:
Eliot Horowitz 2011-07-24 11:20:53 -04:00
parent d539be5510
commit 89e2cce2c8

View File

@ -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();