Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-14340

Make conn->flags atomic

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

      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@mongodb.com Andrew Morton
            Reporter:
            luke.pearson@mongodb.com Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: