Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
2.1.1
-
None
-
Fully Compatible
-
ALL
-
Platforms 2017-01-23
Description
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.