diff options
-rw-r--r-- | src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/sharding_runtime_d_params.idl | 4 |
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 |