0
0
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:
Mathias Stearn 2011-05-09 15:01:39 -04:00
parent 0825375aa1
commit 2758a8bac0

View File

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