summaryrefslogtreecommitdiff
path: root/s
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2011-05-09 15:01:39 -0400
committerMathias Stearn <mathias@10gen.com>2011-05-09 15:02:39 -0400
commit2758a8bac039b57cc26e8ff7fc8a24f7ae257893 (patch)
treed1332c3a3cee8e6c555e61b148952727a6c42a4e /s
parent0825375aa178e4a8d278f3315155604bb1927e85 (diff)
downloadmongo-2758a8bac039b57cc26e8ff7fc8a24f7ae257893.tar.gz
Don't migrate high/low chunk while balancer is disabled SERVER-3070
Diffstat (limited to 's')
-rw-r--r--s/chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/s/chunk.cpp b/s/chunk.cpp
index ef62647bf3a..eeea5917c3f 100644
--- a/s/chunk.cpp
+++ b/s/chunk.cpp
@@ -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();