Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-6447

Reduce locking in test/format

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Keith Bostic points out that there is no reason we need to acquire ts_lock in timestamp_once(). The idea is that each worker thread updates its thread-local struct with its commit timestamp after its done the commit. Before that moment, the struct contains the commit ts from the previous commit (or 0). The utility thread that updates the oldest and stable timestamps just needs to scan all the thread local structs and get the minimum of all commit timestamps.

        Attachments

          Activity

            People

            Assignee:
            donald.anderson Donald Anderson
            Reporter:
            donald.anderson Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: