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 15:14:59 +0000
commita3caa74ad14fbe1bbbb68382548393a3db29fdb1 (patch)
tree38708e6acffe3254aa78da47656c6a5c89c18b26
parentaa716ebc9b4459881540b657986859e6ef3e15c6 (diff)
downloadmongo-a3caa74ad14fbe1bbbb68382548393a3db29fdb1.tar.gz
SERVER-56307 fix name of server parameter
(cherry picked from commit d40fb7099961fa73de106f390bb9396676bac0bc) (cherry picked from commit 388d5c4ae92e3f63b1fcc8181702167a9b1f6c5e)
-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 1d13f3728fd..b1ac46654ff 100644
--- a/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp
+++ b/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp
@@ -1055,7 +1055,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 ef964aac54d..7b38fdda28e 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