Skip to content

Commit 21c4a21

Browse files
alcaeuskevinAlbs
andcommitted
Use mongoc_client_new in public examples
Co-authored-by: Kevin Albertson <[email protected]>
1 parent 10a5cd3 commit 21c4a21

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/libmongoc/tests/test-mongoc-sample-commands.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,11 +3464,11 @@ with_transaction_example (bson_error_t *error)
34643464
* members in the URI string; e.g.
34653465
* uri_repl = "mongodb://mongodb0.example.com:27017,mongodb1.example.com:" \
34663466
* "27017/?replicaSet=myRepl";
3467-
* client = test_framework_client_new (uri_repl);
3467+
* client = mongoc_client_new (uri_repl);
34683468
* For a sharded cluster, connect to the mongos instances; e.g.
34693469
* uri_sharded =
34703470
* "mongodb://mongos0.example.com:27017,mongos1.example.com:27017/";
3471-
* client = test_framework_client_new (uri_sharded);
3471+
* client = mongoc_client_new (uri_sharded);
34723472
*/
34733473

34743474
client = get_client ();
@@ -3585,11 +3585,11 @@ _test_sample_versioned_api_example_1 (void)
35853585
* members in the URI string; e.g.
35863586
* uri_repl = "mongodb://mongodb0.example.com:27017,mongodb1.example.com:" \
35873587
* "27017/?replicaSet=myRepl";
3588-
* client = test_framework_client_new (uri_repl);
3588+
* client = mongoc_client_new (uri_repl);
35893589
* For a sharded cluster, connect to the mongos instances; e.g.
35903590
* uri_sharded =
35913591
* "mongodb://mongos0.example.com:27017,mongos1.example.com:27017/";
3592-
* client = test_framework_client_new (uri_sharded);
3592+
* client = mongoc_client_new (uri_sharded);
35933593
*/
35943594

35953595
client = get_client ();
@@ -3614,11 +3614,11 @@ _test_sample_versioned_api_example_2 (void)
36143614
* members in the URI string; e.g.
36153615
* uri_repl = "mongodb://mongodb0.example.com:27017,mongodb1.example.com:" \
36163616
* "27017/?replicaSet=myRepl";
3617-
* client = test_framework_client_new (uri_repl);
3617+
* client = mongoc_client_new (uri_repl);
36183618
* For a sharded cluster, connect to the mongos instances; e.g.
36193619
* uri_sharded =
36203620
* "mongodb://mongos0.example.com:27017,mongos1.example.com:27017/";
3621-
* client = test_framework_client_new (uri_sharded);
3621+
* client = mongoc_client_new (uri_sharded);
36223622
*/
36233623

36243624
client = get_client ();
@@ -3644,11 +3644,11 @@ _test_sample_versioned_api_example_3 (void)
36443644
* members in the URI string; e.g.
36453645
* uri_repl = "mongodb://mongodb0.example.com:27017,mongodb1.example.com:" \
36463646
* "27017/?replicaSet=myRepl";
3647-
* client = test_framework_client_new (uri_repl);
3647+
* client = mongoc_client_new (uri_repl);
36483648
* For a sharded cluster, connect to the mongos instances; e.g.
36493649
* uri_sharded =
36503650
* "mongodb://mongos0.example.com:27017,mongos1.example.com:27017/";
3651-
* client = test_framework_client_new (uri_sharded);
3651+
* client = mongoc_client_new (uri_sharded);
36523652
*/
36533653

36543654
client = get_client ();
@@ -3674,11 +3674,11 @@ _test_sample_versioned_api_example_4 (void)
36743674
* members in the URI string; e.g.
36753675
* uri_repl = "mongodb://mongodb0.example.com:27017,mongodb1.example.com:" \
36763676
* "27017/?replicaSet=myRepl";
3677-
* client = test_framework_client_new (uri_repl);
3677+
* client = mongoc_client_new (uri_repl);
36783678
* For a sharded cluster, connect to the mongos instances; e.g.
36793679
* uri_sharded =
36803680
* "mongodb://mongos0.example.com:27017,mongos1.example.com:27017/";
3681-
* client = test_framework_client_new (uri_sharded);
3681+
* client = mongoc_client_new (uri_sharded);
36823682
*/
36833683

36843684
client = get_client ();

0 commit comments

Comments
 (0)