diff options
author | Marcos José Grillo Ramirez <marcos.grillo@mongodb.com> | 2023-05-09 14:11:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-09 15:57:27 +0000 |
commit | 5a3aafb2d7c938c7752a961a2266b9f7d1de6dae (patch) | |
tree | a0801a173e004e429c19fbd56d06c7d1c8f54796 /src/mongo | |
parent | 949d80e27dcfb560106f942e949daf7967d487b0 (diff) | |
download | mongo-5a3aafb2d7c938c7752a961a2266b9f7d1de6dae.tar.gz |
SERVER-76056 Rename range deleter's docs deleted statistic from countDocsDeletedOnDonor to countDocsDeletedByRangeDeleter
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/s/range_deletion_util.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/sharding_statistics.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/sharding_statistics.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/range_deletion_util.cpp b/src/mongo/db/s/range_deletion_util.cpp index e5c1e3b1b92..42f18b201c9 100644 --- a/src/mongo/db/s/range_deletion_util.cpp +++ b/src/mongo/db/s/range_deletion_util.cpp @@ -184,7 +184,7 @@ StatusWith<int> deleteNextBatch(OperationContext* opCtx, } invariant(PlanExecutor::ADVANCED == state); - ShardingStatistics::get(opCtx).countDocsDeletedOnDonor.addAndFetch(1); + ShardingStatistics::get(opCtx).countDocsDeletedByRangeDeleter.addAndFetch(1); } while (++numDeleted < numDocsToRemovePerBatch); diff --git a/src/mongo/db/s/sharding_statistics.cpp b/src/mongo/db/s/sharding_statistics.cpp index b463c5ebb42..527804c1689 100644 --- a/src/mongo/db/s/sharding_statistics.cpp +++ b/src/mongo/db/s/sharding_statistics.cpp @@ -72,7 +72,7 @@ void ShardingStatistics::report(BSONObjBuilder* builder) const { builder->append("countDocsClonedOnDonor", countDocsClonedOnDonor.load()); builder->append("countBytesClonedOnDonor", countBytesClonedOnDonor.load()); builder->append("countRecipientMoveChunkStarted", countRecipientMoveChunkStarted.load()); - builder->append("countDocsDeletedOnDonor", countDocsDeletedOnDonor.load()); + builder->append("countDocsDeletedByRangeDeleter", countDocsDeletedByRangeDeleter.load()); builder->append("countDonorMoveChunkLockTimeout", countDonorMoveChunkLockTimeout.load()); builder->append("countDonorMoveChunkAbortConflictingIndexOperation", countDonorMoveChunkAbortConflictingIndexOperation.load()); diff --git a/src/mongo/db/s/sharding_statistics.h b/src/mongo/db/s/sharding_statistics.h index d1b3ed2a816..9479bbc87bd 100644 --- a/src/mongo/db/s/sharding_statistics.h +++ b/src/mongo/db/s/sharding_statistics.h @@ -89,7 +89,7 @@ struct ShardingStatistics { // Cumulative, always-increasing counter of how many documents have been deleted by the // rangeDeleter. - AtomicWord<long long> countDocsDeletedOnDonor{0}; + AtomicWord<long long> countDocsDeletedByRangeDeleter{0}; // Cumulative, always-increasing counter of how many chunks this node started to receive // (whether the receiving succeeded or not) |