-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
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.