Skip to content

Commit 4746b65

Browse files
committed
CDRIVER-2270 compatibility logic fix, part 2
1 parent dc159fa commit 4746b65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mongoc/mongoc-topology-description.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ transition_t gSDAMTransitionTable
15921592
NULL, /* MONGOC_TOPOLOGY_SHARDED */
15931593
NULL, /* MONGOC_TOPOLOGY_RS_NO_PRIMARY */
15941594
_mongoc_topology_description_check_if_has_primary /* MONGOC_TOPOLOGY_RS_WITH_PRIMARY
1595-
*/
1595+
*/
15961596
},
15971597
{/* STANDALONE */
15981598
_mongoc_topology_description_update_unknown_with_standalone,
@@ -1706,7 +1706,8 @@ _mongoc_topology_description_check_compatible (
17061706
for (i = 0; i < td->servers->items_len; i++) {
17071707
sd = (mongoc_server_description_t *) mongoc_set_get_item (td->servers,
17081708
(int) i);
1709-
if (sd->type == MONGOC_SERVER_UNKNOWN) {
1709+
if (sd->type == MONGOC_SERVER_UNKNOWN ||
1710+
sd->type == MONGOC_SERVER_POSSIBLE_PRIMARY) {
17101711
continue;
17111712
}
17121713

0 commit comments

Comments
 (0)