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

Refactor getID() and locking in SSLThreadInfo

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None
    • Service Arch

    Description

      We can replace the getID() function in SSLThreadInfo (see here) with OS-specific APIs (e.g, gettid() on Linux and GetCurrentThreadId() on Windows) that provide the same functionality. The getID() function is only required by versions before OpenSSL 1.1.0, and removing it would simplify the code and facilitate maintenance.

      Also, the locking functionality in SSLThreadInfo can be simplified/improved to use a singleton pattern.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: