-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
ALL
-
Query 2020-08-24
-
50
The '_numYields' field gets updated in a single thread, but other threads can read it via $currentOp. These reads can trigger appear as data races in TSAN and are technically undefined behavior. Making '_numYields' atomic silences the TSAN errors and gives us reasonable behavior for the purposes of $currentOp.