Almost all sharding catalog unit-tests define a static variable kReplSecondaryOkMetadata with a function initializer referencing ReadPreferenceSetting. The problem is that this initializer function can be called before ReadPreferenceSetting's static variables have been constructed, which causes the tests to crash under Windows DEBUG.
Undefined behaviour in the sharding catalog unit-tests
- Assignee:
-
Kaloian Manassiev
- Reporter:
-
Kaloian Manassiev
- Votes:
-
0 Vote for this issue - Watchers:
-
2 Start watching this issue
- Created:
- Updated:
- Resolved: