-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Not Applicable
-
None
-
Storage Engines - Foundations
-
SE Foundations - Q4+ Backlog
-
5
Currently, some statistic interfaces (such as WT_STAT_CONN_INCRV) already have thread-safe equivalents (like WT_STAT_CONN_INCR_ATOMIC). However, other interfaces, such as WT_STATP_CONN_SET and WT_STATP_DSRC_INCRV/DECRV, do not have thread-safe alternatives.
At the moment, some of these interfaces suppress data races using _wt_tsan_suppress* functions, while others rely on relaxed atomics directly.
The scope of this ticket is to create all the necessary thread-safe statistic interfaces and use them in the appropriate places. The interfaces mentioned above are the only ones currently known, but there may be more.
This change will significantly improve code quality and readability.