Skip to content

Commit 7a566e1

Browse files
committed
add comment
1 parent 80a7154 commit 7a566e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libmongoc/src/mongoc/mongoc-topology-description.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ _mongoc_topology_description_server_is_candidate (
353353
return false;
354354
}
355355

356+
/* Note, there is no call path that leads to the
357+
* MONGOC_TOPOLOGY_LOAD_BALANCED case. Server selection for load balanced
358+
* topologies bypasses this logic. This silences compiler warnings on
359+
* unhandled enum values. */
356360
case MONGOC_TOPOLOGY_LOAD_BALANCED:
357361
return desc_type == MONGOC_SERVER_LOAD_BALANCER;
358362

0 commit comments

Comments
 (0)