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

Fix Windows version detection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.0-rc3
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-11-13

    Description

      Currently due to behavior changes GetVersionEx unless mongod/mongos is manifested to target OS versions after Windows 8, the GetVersionEx function always returns Windows 8. This makes detecting the customer's OS from logs difficult since the logs will get wrong information.

      References:
      https://msdn.microsoft.com/en-us/library/windows/desktop/dn481241(v=vs.85).aspx
      https://stackoverflow.com/questions/27246562/how-to-get-the-os-version-in-win8-1-as-getversion-getversionex-are-deprecated

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: