Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67084

Make setState private in ReshardingMetricsNew

    • Minor Change
    • ALL

      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@mongodb.com Tyler Brock
            Reporter:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: