Make conn->flags atomic

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Concurrency
    • Storage Engines, Storage Engines - Foundations
    • StorEng - 2025-04-25
    • 5

      The connection flags being a non atomic field means that two threads updating the flags can race and their RMW cycles overlap resulting in an invalid state for that field.

      This is incorrect and conn->flags should be converted to conn->flags_atomic . Then the F_SET_ATOMIC and related macros should be used to manipulate the field.

              Assignee:
              Zunyi Liu
              Reporter:
              Luke Pearson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: