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

Remove the definition of CertInformationToLog::getDynamicAttributes from the header

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Server Security
    • Fully Compatible
    • Security 2023-06-12, Security 2023-06-26

      Because CertInformationToLog::getDynamicAttributes is declared in the header, it must be compiled in every file it is used (1000+). This function is expensive to compile because of all of the template instantiations in particular needed for libfmt & logging.

      Move the definition of the function into src/mongo/util/net/ssl_manager.cpp.

      Definition:
      https://github.com/mongodb/mongo/blob/310e84afa411117081c8b49ae152673d08ec597d/src/mongo/util/net/ssl_manager.h#L188-L202

            Assignee:
            emilio.alvearcantu@mongodb.com Emilio Alvear Cantu (Inactive)
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: