Get rid of the ScopedAllowImplicitCollectionCreate_UNSAFE marker

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: