Make conn->flags atomic

XMLWordPrintableJSON

    • 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:
            Andrew Morton
            Reporter:
            Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: