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

Make ElapsedTracker non-thread safe

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2023-06-26
    • 4

    Description

      ElapsedTracker is used in two situations
      1. By PlanYieldPolicy as part single-threaded queries to determine if they should yield
      2. By WiredTigerKVEngine to track if the sizeStorer should be flushed

      Only the second case needs to be thread-safe. This can be done with a mutex instead of using atomics in all cases.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: