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

mongoc_client_get_server_[type|ismaster]

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: 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:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: