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

Remove double loading of the sharding database metadata entry

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.0, 3.5.1
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2017-01-02, Sharding 2017-02-13, Sharding 2017-03-06

      The sharding cache currently loads the database metadata entry twice - once as part of the cache check and once when the entire DBConfig is loaded. This is not necessary and also prevents some of the fields from being marked as const, specifically _primaryId.

      Since we have no means of forcing the refresh of a database primary, there is no point in reloading this value each time we force reload of the collections in DBConfig::reload.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: