mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
Don't migrate high/low chunk while balancer is disabled SERVER-3070
This commit is contained in:
parent
0825375aa1
commit
2758a8bac0
@ -360,7 +360,7 @@ namespace mongo {
|
||||
<< endl;
|
||||
|
||||
BSONElement shouldMigrate = res["shouldMigrate"]; // not in mongod < 1.9.1 but that is ok
|
||||
if (!shouldMigrate.eoo()){
|
||||
if (!shouldMigrate.eoo() && grid.shouldBalance()){
|
||||
BSONObj range = shouldMigrate.embeddedObject();
|
||||
BSONObj min = range["min"].embeddedObject();
|
||||
BSONObj max = range["max"].embeddedObject();
|
||||
|
Loading…
Reference in New Issue
Block a user