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

Implement lock-free version of AutoGetCollectionForRead

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: Catalog, Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Execution Team 2020-09-21, Execution Team 2020-10-05, Execution Team 2020-10-19

      Description

      Change the AutoGetCollectionForRead class to no longer take collection MODE_IS locks, when flagged to do so, while still performing the same checks and providing the same read semantics.

      The flagging may be done through a special enum constant to be passed to the constructor, or similar approach. The idea is that we can change individual call sites to use lock-free reads or not.

      This ticket probably can only be tested through a unit test or dbtest until at least SERVER-50145 is done.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dianna.hohensee Dianna Hohensee
              Reporter:
              geert.bosch Geert Bosch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: