summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Polato <paolo.polato@mongodb.com>2021-06-14 13:13:41 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-21 12:32:14 +0000
commitd2540340cdd788dc8a54a0030166c0baaa3c26a9 (patch)
tree6959b1cdfef7c4223ab63c27161d8752b01239dd
parentc84c7f406a7fc0ea5a63a5cc807687e730580a70 (diff)
downloadmongo-d2540340cdd788dc8a54a0030166c0baaa3c26a9.tar.gz
SERVER-56307 fix name of server parameter
(cherry picked from commit d40fb7099961fa73de106f390bb9396676bac0bc)
-rw-r--r--src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp2
-rw-r--r--src/mongo/db/s/sharding_runtime_d_params.idl4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp b/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp
index 863ea9150c4..0d59d098615 100644
--- a/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp
+++ b/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp
@@ -1141,7 +1141,7 @@ Status MigrationChunkClonerSourceLegacy::_checkRecipientCloningStatus(OperationC
auto estimatedUntransferredChunkPercentage =
(std::min(_args.getMaxChunkSizeBytes(), estimatedUntransferredModsSize) * 100) /
_args.getMaxChunkSizeBytes();
- if (estimatedUntransferredChunkPercentage < minCatchUpPercentageBeforeBlockingWrites) {
+ if (estimatedUntransferredChunkPercentage < maxCatchUpPercentageBeforeBlockingWrites) {
// The recipient is sufficiently caught-up with the writes on the donor.
// Block writes, so that it can drain everything.
return Status::OK();
diff --git a/src/mongo/db/s/sharding_runtime_d_params.idl b/src/mongo/db/s/sharding_runtime_d_params.idl
index 76aebc4934f..a58fef848d2 100644
--- a/src/mongo/db/s/sharding_runtime_d_params.idl
+++ b/src/mongo/db/s/sharding_runtime_d_params.idl
@@ -84,14 +84,14 @@ server_parameters:
cpp_varname: migrationLockAcquisitionMaxWaitMS
default: 500
- minCatchUpPercentageBeforeBlockingWrites:
+ maxCatchUpPercentageBeforeBlockingWrites:
description: >-
The maximum percentage of untrasferred chunk mods at the end of a catch up iteration
that may be deferred to the next phase of the migration protocol
(where new writes get blocked).
set_at: [startup]
cpp_vartype: int
- cpp_varname: minCatchUpPercentageBeforeBlockingWrites
+ cpp_varname: maxCatchUpPercentageBeforeBlockingWrites
validator:
gte: 0
lte: 100