diff options
author | auto-revert-processor <dev-prod-dag@mongodb.com> | 2023-05-08 20:40:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-08 21:38:54 +0000 |
commit | 3adcdac21fb8a2add8a0755f31984c493399a4c7 (patch) | |
tree | d6253208bb1d7a922fd00c4279c06ea2566fcb48 /src/mongo | |
parent | eeff988cb9d06d713de7aae1aa16a7bea4f80003 (diff) | |
download | mongo-3adcdac21fb8a2add8a0755f31984c493399a4c7.tar.gz |
Revert "SERVER-76056 Rename range deleter's docs deleted statistic from countDocsDeletedOnDonor to countDocsDeletedByRangeDeleter"
This reverts commit dfd6b367420e4c2c1d63aaa48a5ef622e65affad.
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 42f18b201c9..e5c1e3b1b92 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).countDocsDeletedByRangeDeleter.addAndFetch(1); + ShardingStatistics::get(opCtx).countDocsDeletedOnDonor.addAndFetch(1); } while (++numDeleted < numDocsToRemovePerBatch); diff --git a/src/mongo/db/s/sharding_statistics.cpp b/src/mongo/db/s/sharding_statistics.cpp index 527804c1689..b463c5ebb42 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("countDocsDeletedByRangeDeleter", countDocsDeletedByRangeDeleter.load()); + builder->append("countDocsDeletedOnDonor", countDocsDeletedOnDonor.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 9479bbc87bd..d1b3ed2a816 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> countDocsDeletedByRangeDeleter{0}; + AtomicWord<long long> countDocsDeletedOnDonor{0}; // Cumulative, always-increasing counter of how many chunks this node started to receive // (whether the receiving succeeded or not) |