Make ElapsedTracker non-thread safe

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2023-06-26
    • 4
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: