@@ -834,9 +834,7 @@ _mongoc_topology_do_blocking_scan (mongoc_topology_t *topology,
834
834
{
835
835
_mongoc_handshake_freeze ();
836
836
837
- // LBTODO: don't even bother locking the mutex, note that this is for single-threaded clients only.
838
837
bson_mutex_lock (& topology -> mutex );
839
- // LBTODO if this is a load balanced cluster, then do not obey cooldown.
840
838
mongoc_topology_scan_once (topology , true /* obey cooldown */ );
841
839
bson_mutex_unlock (& topology -> mutex );
842
840
mongoc_topology_scanner_get_error (topology -> scanner , error );
@@ -1401,7 +1399,6 @@ _mongoc_topology_update_from_handshake (mongoc_topology_t *topology,
1401
1399
1402
1400
bson_mutex_lock (& topology -> mutex );
1403
1401
1404
- // LBTODO: do not update the topology if this is load balanced mode.
1405
1402
if (topology -> description .type == MONGOC_TOPOLOGY_LOAD_BALANCED ) {
1406
1403
/* In load balanced mode, scanning is only for connection establishment. It must not modify the topology description. */
1407
1404
MONGOC_DEBUG ("Ignoring handshake response in load balanced mode" );
@@ -1820,7 +1817,6 @@ _mongoc_topology_handle_app_error (mongoc_topology_t *topology,
1820
1817
}
1821
1818
1822
1819
if (type == MONGOC_SDAM_APP_ERROR_NETWORK ) {
1823
- // LBTODO: bypass this in load balanced mode.
1824
1820
/* Mark server as unknown. */
1825
1821
mongoc_topology_description_invalidate_server (
1826
1822
& topology -> description , server_id , why );
@@ -1836,7 +1832,6 @@ _mongoc_topology_handle_app_error (mongoc_topology_t *topology,
1836
1832
return false;
1837
1833
}
1838
1834
/* Mark server as unknown. */
1839
- // LBTODO: bypass this in load balanced mode.
1840
1835
mongoc_topology_description_invalidate_server (
1841
1836
& topology -> description , server_id , why );
1842
1837
_mongoc_topology_clear_connection_pool (topology , server_id );
@@ -1891,7 +1886,6 @@ _mongoc_topology_handle_app_error (mongoc_topology_t *topology,
1891
1886
* error and the error's topologyVersion is strictly greater than the
1892
1887
* current ServerDescription's topologyVersion it MUST replace the
1893
1888
* server's description with a ServerDescription of type Unknown. */
1894
- // LBTODO: bypass this in load balanced mode.
1895
1889
mongoc_topology_description_invalidate_server (
1896
1890
& topology -> description , server_id , & cmd_error );
1897
1891
0 commit comments