diff options
author | Mathias Stearn <mathias@10gen.com> | 2011-05-09 15:01:39 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2011-05-09 15:02:39 -0400 |
commit | 2758a8bac039b57cc26e8ff7fc8a24f7ae257893 (patch) | |
tree | d1332c3a3cee8e6c555e61b148952727a6c42a4e /s | |
parent | 0825375aa178e4a8d278f3315155604bb1927e85 (diff) | |
download | mongo-2758a8bac039b57cc26e8ff7fc8a24f7ae257893.tar.gz |
Don't migrate high/low chunk while balancer is disabled SERVER-3070
Diffstat (limited to 's')
-rw-r--r-- | s/chunk.cpp | 2 |
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(); |