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

Do not initialize ShardRegistry with an empty placeholder

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-07-25

    Description

      Currently the ShardRegistry is initialized with an empty data placeholder.

      This is not necessary, in fact the ShardRegistry is built on top of the ReadThroughCache that will populate the cache with correct data on the first lookup.

      Removing this fake initialization of the cache will make the code cleaner, easier to understand and easier to maintain.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: