diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2023-01-30 20:37:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-30 21:16:34 +0000 |
commit | 61c1c2e9660b3d6b9fc05f0906109bcdb556c67e (patch) | |
tree | 435bf9b0eb7bbacde54d7a23ea1d38b6f1366e4e | |
parent | 909bf6415431b6260dec1baedcd799c27626039c (diff) | |
download | mongo-61c1c2e9660b3d6b9fc05f0906109bcdb556c67e.tar.gz |
SERVER-73398 always invoke moveChunk when both bounds are set
-rw-r--r-- | src/mongo/db/s/balancer/balancer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/s/balancer/balancer.cpp b/src/mongo/db/s/balancer/balancer.cpp index 4a613199e2e..c489afc6680 100644 --- a/src/mongo/db/s/balancer/balancer.cpp +++ b/src/mongo/db/s/balancer/balancer.cpp @@ -1035,8 +1035,7 @@ int Balancer::_moveChunks(OperationContext* opCtx, return coll.getMaxChunkSizeBytes().value_or(balancerConfig->getMaxChunkSizeBytes()); }(); - if (serverGlobalParams.featureCompatibility.isLessThan( - multiversion::FeatureCompatibilityVersion::kVersion_6_0)) { + if (migrateInfo.maxKey.has_value()) { // TODO SERVER-65322 only use `moveRange` once v6.0 branches out MoveChunkSettings settings(maxChunkSizeBytes, balancerConfig->getSecondaryThrottle(), |