Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2571

Prefer connectionId from isMaster response to connectionid from getLastError response

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0
    • Affects Version/s: 2.11.0
    • Component/s: Connectivity
    • None

      The C# driver currently executes the getLastError command as part of the server handshake, in order to get the connectionId from its response. This is useful for logging and monitoring connection use and correlating with server log files. As of 4.2, the server will return the connectionId in the isMaster response, which the driver has to execute anyway on every connection. If the driver detects a connectionId in the isMaster response, it should just use it and not execute getLastError.

            Assignee:
            mikalai.mazurenka@mongodb.com Mikalai Mazurenka (Inactive)
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: