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

Get rid of calls to ShardingState::getCollectionMetadata

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.11
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 16 (06/24/16), Sharding 17 (07/15/16), Sharding 18 (08/05/16)

      Description

      The per-collection metadata is owned and managed through the CollectionShardingState class, which has one instance per sharded collection.

      All retrieval of collection metadata should go through this class so it can enforce proper locking rules and we should remove calls to ShardingState::getCollectionMetadata, which does not check for locks.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leon.zaruvinsky Leon Zaruvinsky
              Reporter:
              kaloian.manassiev Kaloian Manassiev
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: