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

Get rid of the ScopedAllowImplicitCollectionCreate_UNSAFE marker

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None

      In SERVER-52778 we added the ScopedAllowImplicitCollectionCreate_UNSAFE marker RAII class, which allows only a fixed set of code paths to create collections in a Sharded cluster.

      This ticket is the last part of a set of dependent tickets to remove it from the various implicit collection creation paths. When this ticket is ready to be worked on, we should just rename that utility to something more meaningful and only use it in the CreateCollection coordinator.

      Without this ticket, implicitly created collections (through write to a non-existent collection for example) and those created through a call to create will not serialise with DropDatabase and could end-up getting lost.

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

              Created:
              Updated:
              Resolved: