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

Pull the CollectionShardingState map out of ShardingState

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.3, 3.7.2
    • Sharding
    • None
    • Fully Compatible
    • v3.6
    • Sharding 2018-01-29, Sharding 2018-02-12

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: