Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Service Arch 2022-10-17
-
160
Description
A pseudorandom number generator is accessed from multiple threads in mongobridge
Possible fix:
PseudoRandom makeSeededPRNG() {
|
static StaticImmortal g = PseudoRandom{mongoBridgeGlobalParams.seed}; |
+ static Mutex m; |
+ stdx::lock_guard lk{m};
|
return PseudoRandom{g->nextInt64()}; |
}
|
Caused the BF-26584 TSAN alert.