Use relaxed atomic operations for obsolete_tw_btree_count, checkpoint_cleanup_obsolete_tw_pages, and eviction_obsolete_tw_pages

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • WT12.0.0
    • Affects Version/s: None
    • Component/s: Btree
    • None
    • Storage Engines - Transactions
    • SE Transactions - 2026-01-30
    • 1

      Use relaxed atomic operations for obsolete_tw_btree_count, checkpoint_cleanup_obsolete_tw_pages, and eviction_obsolete_tw_pages variables. They are only used as a hint for some heuristics. Therefore, memory ordering of the variables doesn't matter for correctness. In addition, all the reads of the variables use relaxed ordering. Thus, using stronger ordering at the write side doesn't make sense.

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

              Created:
              Updated:
              Resolved: