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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.1, 3.7.1
    • 3.5.13
    • Sharding
    • None
    • Fully Compatible
    • v3.6
    • Sharding 2017-12-04, Sharding 2017-12-18

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: