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.
1 parent 80a7154 commit 7a566e1Copy full SHA for 7a566e1
src/libmongoc/src/mongoc/mongoc-topology-description.c
@@ -353,6 +353,10 @@ _mongoc_topology_description_server_is_candidate (
353
return false;
354
}
355
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. */
360
case MONGOC_TOPOLOGY_LOAD_BALANCED:
361
return desc_type == MONGOC_SERVER_LOAD_BALANCER;
362
0 commit comments