[SERVER-67084] Make setState private in ReshardingMetricsNew Created: 07/Jun/22  Updated: 29/Oct/23  Resolved: 21/Jul/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Brett Nawrocki Assignee: Tyler Brock
Resolution: Fixed Votes: 0
Labels: neweng, sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Operating System: ALL
Participants:

 Description   

After a refactor during the transition to the new resharding metrics implementation in SERVER-66422, ReshardingMetricsNew::setState is now only called from ReshardingMetricsNew::onStateTransition. Since it's important that users of the class call onStateTransition instead of setState directly, so that the cumulative metrics can be updated, setState should be made private.



 Comments   
Comment by Githook User [ 21/Jul/22 ]

Author:

{'name': 'Tyler Brock', 'email': 'tyler.brock@mongodb.com', 'username': 'TylerBrock'}

Message: SERVER-67084 make setState in ReshardingMetrics private
Branch: master
https://github.com/mongodb/mongo/commit/89383bba210a9eba95e698d2e453fd2b21fe7787

Generated at Thu Feb 08 06:07:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.