diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2021-01-04 16:25:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-04 17:02:45 +0000 |
commit | 801219cbc992f929abb0135d7425bedeb7587297 (patch) | |
tree | c2cd83dc0823db39f39fc0050deb306bc56eccca /src/mongo/db/s | |
parent | 1a0154005fda97c5e8c584b06b649aa6ecc07ab1 (diff) | |
download | mongo-801219cbc992f929abb0135d7425bedeb7587297.tar.gz |
SERVER-53471 use generated range deleter batch size
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r-- | src/mongo/db/s/metadata_manager.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/metadata_manager.h | 2 | ||||
-rw-r--r-- | src/mongo/db/s/sharding_runtime_d_params.idl | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/s/metadata_manager.cpp b/src/mongo/db/s/metadata_manager.cpp index 7a11f7fd699..4a857f4952c 100644 --- a/src/mongo/db/s/metadata_manager.cpp +++ b/src/mongo/db/s/metadata_manager.cpp @@ -374,7 +374,7 @@ SharedSemiFuture<void> MetadataManager::_submitRangeForDeletion( int maxToDelete = rangeDeleterBatchSize.load(); if (maxToDelete <= 0) { - maxToDelete = kDefaultRangeDeleterBatchSize; + maxToDelete = kRangeDeleterBatchSizeDefault; } auto cleanupComplete = diff --git a/src/mongo/db/s/metadata_manager.h b/src/mongo/db/s/metadata_manager.h index e1336e6c32b..ac441a8459c 100644 --- a/src/mongo/db/s/metadata_manager.h +++ b/src/mongo/db/s/metadata_manager.h @@ -252,8 +252,6 @@ private: // Ranges being deleted, or scheduled to be deleted, by a background task. std::list<std::pair<ChunkRange, SharedSemiFuture<void>>> _rangesScheduledForDeletion; - - static constexpr int kDefaultRangeDeleterBatchSize{128}; }; } // namespace mongo diff --git a/src/mongo/db/s/sharding_runtime_d_params.idl b/src/mongo/db/s/sharding_runtime_d_params.idl index deb0752dd0d..340b5a340dc 100644 --- a/src/mongo/db/s/sharding_runtime_d_params.idl +++ b/src/mongo/db/s/sharding_runtime_d_params.idl @@ -33,7 +33,7 @@ server_parameters: description: >- The maximum number of documents in each batch to delete during the cleanup stage of chunk migration (or the cleanupOrphaned command). A value of 0 indicates that the system chooses - the defualt value (128). + the default value (128). set_at: [startup, runtime] cpp_vartype: AtomicWord<int> cpp_varname: rangeDeleterBatchSize |