Cleanup _openCollectionAtLatestByNamespaceOrUUID special case for multikey

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      openCollectionAtLatestByNamespaceOrUUID is only ever executed when there's a commit pending entry. A commit pending entry implies there's a MODE_X holder (or that the collection is only accessible to a txn creating it). So there can be no concurrent CRUD ops changing multikeyness.

      Before SERVER-125391 it was possible for that path to find that even the commit pending instance did not match what was in storage due to multikeyness mismatch. So there was logic to create a compatible collection from storage as a last resort.

      SERVER-125391 fixed index builds to stop reusing the same multikey CRUD path that deferred updating the in-memory state to onCommit, and ensured commit pending entries match what is in storage. So the above logic should no longer be necessary.

            Assignee:
            Unassigned
            Reporter:
            Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: