We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d320fd7 + 31bdfab commit 2bae534Copy full SHA for 2bae534
mcon/manager.c
@@ -429,11 +429,9 @@ static mongo_connection *mongo_get_connection_multiple(mongo_con_manager *manage
429
* later on, but we should continue to aggregate the errors in case more
430
* servers are unsupported */
431
if (ismaster_error == 4) {
432
- mongo_manager_connection_deregister(manager, tmp);
433
found_supported_wire_version = 0;
434
- } else {
435
- mongo_connection_destroy(manager, tmp, MONGO_CLOSE_BROKEN);
436
}
+ mongo_manager_connection_deregister(manager, tmp);
437
tmp = NULL;
438
found_connected_server--;
439
0 commit comments