Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

HHVM-196: Manager::getServers() should use mongoc_client_get_server_descriptions() #78

Closed
wants to merge 1 commit into from

Conversation

derickr
Copy link
Contributor

@derickr derickr commented Mar 23, 2016

Note: Can't really merge this yet until libmongoc 1.4.0 has been properly released.

@derickr derickr force-pushed the HHVM-196-manager-get-servers branch 2 times, most recently from ce7496d to 46358c5 Compare March 24, 2016 17:44
sds = mongoc_client_get_server_descriptions(data->m_client, &n);
for (i = 0; i < n; i++) {
if (sds[i]->type == MONGOC_SERVER_UNKNOWN) {
continue;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that mongodb_driver_add_server_debug_wrapper() never excluded servers in the unknown state, so this is a behavioral change. That said, it's probably quite insignificant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, but by not skipping it, a test failed.

@derickr derickr force-pushed the HHVM-196-manager-get-servers branch from 46358c5 to acd7334 Compare March 30, 2016 08:42
@derickr derickr closed this Mar 30, 2016
@derickr derickr deleted the HHVM-196-manager-get-servers branch March 30, 2016 08:43
derickr added a commit that referenced this pull request Mar 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants