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

Get rid of reduntant ShardRegistry::init function

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Sharding 2020-11-02, Sharding 2020-11-16

      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:

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

              Created:
              Updated:
              Resolved: