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

Pull the CollectionShardingState map out of ShardingState

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.3, 3.7.2
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.6
    • Sprint:
      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

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

              Dates

              Created:
              Updated:
              Resolved: