We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc159fa commit 4746b65Copy full SHA for 4746b65
src/mongoc/mongoc-topology-description.c
@@ -1592,7 +1592,7 @@ transition_t gSDAMTransitionTable
1592
NULL, /* MONGOC_TOPOLOGY_SHARDED */
1593
NULL, /* MONGOC_TOPOLOGY_RS_NO_PRIMARY */
1594
_mongoc_topology_description_check_if_has_primary /* MONGOC_TOPOLOGY_RS_WITH_PRIMARY
1595
- */
+ */
1596
},
1597
{/* STANDALONE */
1598
_mongoc_topology_description_update_unknown_with_standalone,
@@ -1706,7 +1706,8 @@ _mongoc_topology_description_check_compatible (
1706
for (i = 0; i < td->servers->items_len; i++) {
1707
sd = (mongoc_server_description_t *) mongoc_set_get_item (td->servers,
1708
(int) i);
1709
- if (sd->type == MONGOC_SERVER_UNKNOWN) {
+ if (sd->type == MONGOC_SERVER_UNKNOWN ||
1710
+ sd->type == MONGOC_SERVER_POSSIBLE_PRIMARY) {
1711
continue;
1712
}
1713
0 commit comments