Make setState private in ReshardingMetricsNew

XMLWordPrintableJSON

    • Minor Change
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Tyler Brock
            Reporter:
            Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: