SERVER-135655ClosedFixed
Shared lazily-initialized state in S2 classes allow data races
The S2 data structures {{S2EdgeIndex}} and {{S2Loop}} have {{mutable}} state that can be changed by {{const}} methods. Previously this was thought to be innocuous because it only affected integer counters. However, {{map}} and {{multimap}} data structures are also affected, which can result in a server crash when accessed concurrently. * [S2Loop::vertext_to_index_|https://github.com/10gen/mongo/blob/efd5d7c5aa7dc2dfbed81dd081165cb4b3322e45/src/third_party/s2/s2loop.h#L333] * [S2EdgeIndex::ma