diff options
author | Matthew Saltz <matthew.saltz@mongodb.com> | 2019-07-11 13:33:19 -0400 |
---|---|---|
committer | Matthew Saltz <matthew.saltz@mongodb.com> | 2019-07-31 13:28:00 -0400 |
commit | 4a0def0129ae5aa6c8ea951b5c452c8938cf4d83 (patch) | |
tree | e7d67f09d5f3e50cdfdb91e27d45aa764f1950e7 | |
parent | c442fc5c84421ce4ca26f0e33b829705070c94d3 (diff) | |
download | mongo-4a0def0129ae5aa6c8ea951b5c452c8938cf4d83.tar.gz |
SERVER-36394 Don't refresh balancer configuration for autosplit if autosplit is currently disabledr4.0.12-rc0
-rw-r--r-- | src/mongo/s/write_ops/cluster_write.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/write_ops/cluster_write.cpp b/src/mongo/s/write_ops/cluster_write.cpp index 37560ade7d3..1e9af832516 100644 --- a/src/mongo/s/write_ops/cluster_write.cpp +++ b/src/mongo/s/write_ops/cluster_write.cpp @@ -255,7 +255,8 @@ void updateChunkWriteStatsAndSplitIfNeeded(OperationContext* opCtx, const uint64_t desiredChunkSize = balancerConfig->getMaxChunkSizeBytes(); - if (!chunk.shouldSplit(desiredChunkSize, minIsInf, maxIsInf)) { + if (!chunk.shouldSplit(desiredChunkSize, minIsInf, maxIsInf) || + !balancerConfig->getShouldAutoSplit()) { return; } |