Use relaxed read and write for btree->prune_timestamp

XMLWordPrintableJSON

    • Type: Technical Debt
    • Resolution: Fixed
    • Priority: Major - P3
    • WT12.0.0, 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: Btree
    • None
    • Storage Engines - Transactions
    • SE Transactions - 2026-02-13
    • 1

      btree->prune_timestamp is updated sequentially when we pick up a new checkpoint. There is no concurrent writes to the variable. In addition, the value is increased monotonically. Therefore, either the reader reads the old value or the newly written value doesn't impact correctness. We can safely read it using relaxed ordering as well.

            Assignee:
            Chenhao Qu
            Reporter:
            Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: