mongoc_client_get_server_[type|ismaster]

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We need to add couple of getters for retrieving information about server_id.
      Namely:

      bool mongoc_client_get_server_type (client, server_id);
      bool mongoc_client_get_server_ismaster (client, server_id, bson_t *out);
      

      Note that even though the server_id was retrieve immediately prior to calling these function, the return value must be checked as the server may have evaporated inbetween these calls!

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            Hannes Magnusson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: