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

initial ShardRegistry reload done twice

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL
    • Sharding 2017-01-02

      It looks like the initial reloading of the shard registry is done in two places:

      1) ShardRegistry::startup()
      https://github.com/mongodb/mongo/commit/f32f51272b44f895875ab36fc0ae1553d11f1cc2#diff-999be7e0d323ff2ea936dec580153fc5R176

      2) reloadShardRegistryUntilSuccess()
      https://github.com/mongodb/mongo/blob/eea8acf410705f8c25018babdcf4e7861eb7128e/src/mongo/s/sharding_initialization.cpp#L197-L224

      We may want to have it just done in one place.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: