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

Pull the CollectionShardingState map out of ShardingState

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.3, 3.7.2
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • v3.6
    • Sharding 2018-01-29, Sharding 2018-02-12

      Currently the map, which contains the CollectionShardingState(s) for each namespace is under the ShardingState and is protected by its mutex. This causes circular dependency between the two classes, breaks encapsulation and also adds more users to an already contended mutex.

      This map should be pulled as a separate ServiceContext decoration, private to CollectionShardingState.

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

              Created:
              Updated:
              Resolved: