Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-51700

Use TransportLayer to acquire WireSpec

    XMLWordPrintableJSON

Details

    • Service Arch
    • Fully Compatible
    • Service Arch 2023-09-04, Service Arch 2023-09-18
    • 3

    Description

      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()

      Attachments

        Activity

          People

            erin.mcnulty@mongodb.com Erin McNulty
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: