Skip to content

Commit c4e8fc2

Browse files
committed
fix comment; format
1 parent 626d844 commit c4e8fc2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/libmongoc/src/mongoc/mongoc-cluster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,7 @@ _mongoc_cluster_stream_for_server (mongoc_cluster_t *cluster,
22802280
_mongoc_bson_init_with_transient_txn_error (cs, reply);
22812281
}
22822282

2283-
// LBTODO: if this is a load balanced topology and the server stream does not have a service id, disconnect and return an error.
2283+
/* If this is a load balanced topology and the server stream does not have a service id, disconnect and return an error. */
22842284
bson_mutex_lock (&topology->mutex);
22852285
if (topology->description.type == MONGOC_TOPOLOGY_LOAD_BALANCED) {
22862286
bson_oid_t service_id;

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,9 +1399,12 @@ _mongoc_topology_scanner_set_server_api (mongoc_topology_scanner_t *ts,
13991399
_reset_hello (ts);
14001400
}
14011401

1402-
/* This must be called before the handshake command is constructed. Caller does not need to lock the topology->mutex. */
1402+
/* This must be called before the handshake command is constructed. Caller does
1403+
* not need to lock the topology->mutex. */
14031404
void
1404-
_mongoc_topology_scanner_set_loadbalanced (mongoc_topology_scanner_t *ts, bool val) {
1405+
_mongoc_topology_scanner_set_loadbalanced (mongoc_topology_scanner_t *ts,
1406+
bool val)
1407+
{
14051408
BSON_ASSERT (bson_empty (&ts->handshake_cmd));
14061409
ts->loadbalanced = true;
14071410
}

src/libmongoc/tests/test-mongoc-loadbalanced.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ test_loadbalanced_install (TestSuite *suite)
615615
TestSuite_AddMockServerTest (suite,
616616
"/loadbalanced/handshake_sends_loadbalanced",
617617
test_loadbalanced_handshake_sends_loadbalanced);
618+
618619
TestSuite_AddMockServerTest (
619620
suite,
620621
"/loadbalanced/handshake_rejects_non_loadbalanced",

0 commit comments

Comments
 (0)