-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Service Arch
-
Fully Compatible
-
Service Arch 2023-09-04, Service Arch 2023-09-18
-
3
We still have a number of calls to WireSpec::instance() which uses a global variable. We should switch to using the TransportLayer::getWireSpec() via the ServiceContext. Often, we can go from Session to TransportLayer. Otherwise, this may still rely on getGlobalServiceContext(), but we already know we want to change those locations when possible.
Acceptance criteria:
We should switch to using the TransportLayer::getWireSpec() via the ServiceContext.
Remove WireSpec::instance()
- depends on
-
SERVER-49157 Initialize WireSpec during MONGO_INITIALIZER
- Closed
- is depended on by
-
SERVER-80820 Create getters for Specification on outer WireSpec class
- Backlog
-
SERVER-80822 Move WireSpec Parameters out of code into defaults
- Backlog
-
SERVER-80823 Remove gRPC uses of getGlobalServiceContext
- Backlog
- is related to
-
SERVER-52823 TransportLayer should take a ServiceContext instead of a ServiceEntryPoint
- Open