-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.1.1
-
Component/s: Internal Code
-
Labels:None
-
Fully Compatible
-
ALL
-
Platforms 2017-01-23
The definition of MONGO_ONCE contains a race condition. It's current implementation is as follows:
#define MONGO_ONCE for( static bool undone = true; undone; undone = false )
Plain-and-simple not thread safe.