Skip to content

Commit 2fffa97

Browse files
committed
fix comment; format
1 parent 35ceb5c commit 2fffa97

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
@@ -2281,7 +2281,7 @@ _mongoc_cluster_stream_for_server (mongoc_cluster_t *cluster,
22812281
_mongoc_bson_init_with_transient_txn_error (cs, reply);
22822282
}
22832283

2284-
// LBTODO: if this is a load balanced topology and the server stream does not have a service id, disconnect and return an error.
2284+
/* If this is a load balanced topology and the server stream does not have a service id, disconnect and return an error. */
22852285
bson_mutex_lock (&topology->mutex);
22862286
if (topology->description.type == MONGOC_TOPOLOGY_LOAD_BALANCED) {
22872287
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
@@ -1403,9 +1403,12 @@ _mongoc_topology_scanner_set_server_api (mongoc_topology_scanner_t *ts,
14031403
_reset_hello (ts);
14041404
}
14051405

1406-
/* This must be called before the handshake command is constructed. Caller does not need to lock the topology->mutex. */
1406+
/* This must be called before the handshake command is constructed. Caller does
1407+
* not need to lock the topology->mutex. */
14071408
void
1408-
_mongoc_topology_scanner_set_loadbalanced (mongoc_topology_scanner_t *ts, bool val) {
1409+
_mongoc_topology_scanner_set_loadbalanced (mongoc_topology_scanner_t *ts,
1410+
bool val)
1411+
{
14091412
BSON_ASSERT (bson_empty (&ts->handshake_cmd));
14101413
ts->loadbalanced = true;
14111414
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ test_loadbalanced_install (TestSuite *suite)
611611
TestSuite_AddMockServerTest (suite,
612612
"/loadbalanced/handshake_sends_loadbalanced",
613613
test_loadbalanced_handshake_sends_loadbalanced);
614+
614615
TestSuite_AddMockServerTest (
615616
suite,
616617
"/loadbalanced/handshake_rejects_non_loadbalanced",

0 commit comments

Comments
 (0)