AutoGetCollectionForRead should release secondary collection locks if any secondary namespace is a view or sharded, which is not supported

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • 3
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      AutoGetCollectionForRead takes locks via its underlying AutoGetCollection, then checks the secondary namespaces and sets the value returned by isAnySecondaryNamespaceAViewOrSharded(), which indicates whether access to a secondary namespace is safe or not. However, the locks for the secondary namespaces are still held, which supports access in our low level systems (any lock invariants would pass). We should unlock the secondary namespaces.

        1. 0001-SERVER-65327-logs.patch
          5 kB
          Jordi Serra Torrens

            Assignee:
            [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: