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

ProgramRegistry::_handles access isn't thread safe

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • 3.2.0-rc2
    • Shell
    • None
    • Fully Compatible
    • Windows
    • Platform C (11/20/15)
    • 0

    Description

      There is one global program registry in the shell for managing processes. That registry has a mutex, and uses it to protect it's internal lookup tables against concurrent access.

      On windows, it additionally has a map from pid to HANDLE, but offers this as a public member and makes no effort to ensure thread safe access. We need to bury access to that type behind methods and use the registry mutex to guard _handle inside.

      Attachments

        Activity

          People

            mira.carey@mongodb.com Mira Carey
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: