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

Make setState private in ReshardingMetricsNew

    XMLWordPrintableJSON

Details

    • Minor Change
    • ALL

    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.

      Attachments

        Activity

          People

            tyler.brock@mongodb.com Tyler Brock
            brett.nawrocki@mongodb.com Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: