Initialize WireSpec during MONGO_INITIALIZER

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Service Arch 2020-07-27, Service Arch 2020-08-10
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      We default initialize the WireSpec on first use here. Unfortunately, this means that we can set isInternalClient late like we do here. We should formally initialize the global WireSpec with a MONGO_INITIALIZER.

      It would also be nice if we allowed a TransportLayer to reference a specific WireSpec. It would allow us to switch during our testing or have both internal and external clients in process.

            Assignee:
            Amirsaman Memaripour
            Reporter:
            Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: