Make WT atomics API consistent

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Foundations
    • SE Foundations - 2025-11-07
    • 3

      Currently atomics API has inconsistencies:
       

      __wt_atomic_cas8  __wt_atomic_cas_ptr
      __wt_atomic_cas_ptr __wt_atomic_load_pointer
      __wt_atomic_store8 WT_ACQUIRE_BARRIER

       

      It was decided to make the API consistent:
       

      Before After
      _wt_atomic<cas/rmw><type>
      _wt_atomic<load/store><type>
      WT_RELEASE_WRITE
      WT_ACQUIRE_READ
      _wt_atomic<cas/rmw>_<type>
      _wt_atomic<load/store>_<type>_relaxed
      _wt_atomic_store<type>_release
      _wt_atomic_load<type>_acquire

            Assignee:
            Ivan Kochin
            Reporter:
            Ivan Kochin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: