Fix Windows version detection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-11-13
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: