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

Get rid of reduntant ShardRegistry::init function

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • Sharding 2020-11-02, Sharding 2020-11-16

    Description

      The ShardRegistry is the only component living on the Grid that requires an additional initializing procedure after its creation. My claim is that this initializing procedure can be perform directly in the constructor. This will allow to simplify the logic of the ShardRegistry because it will eliminate one of its possible states:

      1. Created
      2. Initialized
      3. Up
      4. Shutdown
      5. Destructed

      The shardRegistry creation happen respectively:

      Attachments

        Activity

          People

            tommaso.tocci@mongodb.com Tommaso Tocci
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: