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

Remove all usages of the default constructor of ScopedCollectionMetadata outside of MetadataManager

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.1, 3.7.1
    • Affects Version/s: 3.5.13
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • v3.6
    • Sharding 2017-12-04, Sharding 2017-12-18

      The ScopedCollectionMetadata object is supposed to only be created by the MetadataManager since only it knows definitively what the current metadata for the collection is. Currently there are call sites which create ScopedCollectionMetadata using the default constructor, which makes it difficult to ensure correctness in one place.

      Because of this we should remove all usages of the default constructor outside of MetadataManager.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: