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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.17.0-beta, 1.17.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: