Handle direct connections for implicit creation path

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • v8.1, v8.0
    • Sharding EMEA 2023-10-30
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In SERVER-80372, the checks for taking the ScopedAllowImplicitCollectionCreate_UNSAFE are using ShardingState::get(opCtx)->isComingFromRouter to determine whether a connection is a direct shard connection and so should be allowed to create a local (untracked) collection.

      This isn't a good way to check for direct connections because it will also return false during ddl operations, for example. This ticket is to update the check in the scoped acquisitions to correctly check for direct connections.

              Assignee:
              Unassigned
              Reporter:
              Allison Easton
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: