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

Make multiple lookups within a snapshot from the CollectionCatalog consistent

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.4, v4.2
    • Execution Team 2020-11-16, Execution Team 2020-11-30
    • 0

      Implement copy-on-write on the CollectionCatalog. Where its data structures that contain shared pointers are copied.

      The new catalog instance should be able to be installed with atomic compare-and-swap and we can remove the catalog mutex that is currently there.

      Lock-Free read operations hold a shared_ptr to a CollectionCatalog consistent with the established storage snapshot and may perform multiple lookups from this instance that all is consistent with the storage snapshot.

      This should allow us to support DBDirectClient in Lock-Free Reads.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: