Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3528

An ismaster reply containing "msg" is considered a mongos regardless of the value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.17.0-beta, 1.17.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      A slight deviation from the SDAM spec, but in parsing an ismaster reply, libmongoc always considers the existence of the field "msg" to indicate the server is a mongos.

      But the SDAM spec is explicit in that the value should be "isdbgrid".

      I don't believe there is any current bug that could surface from this, as I'm not aware of servers ever reporting "msg" with another value. But it could foreseeably change (e.g. as suggested in SERVER-3353).
       

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: