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

Extend the CollectionCatalog API for use with exclusive lock

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • 1

      based on the discussions of this PR we might should add new functions to the CollectionCatalog interface in order to call them with the global lock held.

      Now the CollectionCatalog::lookupCollectionByUUIDForMetadataWrite and CollectionCatalog::lookupCollectionByNamespaceForMetadataWrite works differently based on the readOnly flag of the context and the status of the global lock.

      With global lock held we don't need an active WUOW to get writable catalogs.

            Assignee:
            Unassigned Unassigned
            Reporter:
            adam.farkas@mongodb.com Wolfee Farkas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: