-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
Labels:None
-
Platforms 2018-01-01, Platforms 2018-01-15
The presence of a static globalServiceContext variable is an impediment to being able to write unit-tests, which contain different environments or storage engines and it should be removed.
The codebase seems to be pretty close to that goal.
As part of this change, we should:
- Get rid of the SetGlobalEnvironment initializer
- Pass the ServiceContext as part of the InitializerContext
- Move all storage engine variables outside of ServiceContext and put them on a decoration
- is related to
-
SERVER-33460 Provide ServiceContext* when setting ServerParameter
- Closed
- related to
-
SERVER-67478 Get rid of getGlobalServiceContext
- Backlog
-
SERVER-29519 Get rid of getGlobalReplicationCoordinator
- Closed