[CDRIVER-1095] mongoc_client_get_server_[type|ismaster] Created: 09/Feb/16  Updated: 10/Aug/16  Resolved: 19/Feb/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.4.0
Fix Version/s: 1.4.0

Type: New Feature Priority: Major - P3
Reporter: Hannes Magnusson Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by PHPC-606 Use mongoc_server_description_t publi... Closed
Related
related to CDRIVER-1091 mongoc_client_get_server_descriptions() Closed
Epic Link: Public API for PHP drivers

 Description   

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!



 Comments   
Comment by Githook User [ 19/Feb/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1091 add mongoc_client_get_server_descriptions

And mongoc_server_description_ismaster, mongoc_server_description_type
(CDRIVER-1095).
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/7b01ae8c1f2bdc0597745becf17335baa784eb36

Generated at Wed Feb 07 21:11:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.