Skip to content

Commit 8855823

Browse files
committed
fix
1 parent b8c442d commit 8855823

4 files changed

+7
-4
lines changed

doc/mongoc_client_set_write_concern.page

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
<synopsis><code mime="text/x-csrc"><![CDATA[void
1616
mongoc_client_set_write_concern (mongoc_client_t *client,
1717
const mongoc_write_concern_t *write_concern);]]></code></synopsis>
18-
<p>Sets the default write concern for the client. This only affects future operations, collections, and databases inheriting from <code>client</code>.</p>
18+
<p>Sets the write concern for the client. This only affects future operations, collections, and databases inheriting from <code>client</code>.</p>
19+
<p>The default write concern is MONGOC_WRITE_CONCERN_W_DEFAULT: the driver blocks awaiting basic acknowledgment of write operations from MongoDB. This is the correct write concern for the great majority of applications.</p>
1920
</section>
2021

2122
<section id="parameters">

doc/mongoc_collection_create_bulk_operation.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mongoc_collection_create_bulk_operation (
4040
<p>After calling <link xref="mongoc_bulk_operation_execute">mongoc_bulk_operation_execute()</link> the commands will be executed in as large as batches as reasonable by the client.</p>
4141
<p>If <code>ordered</code> is true, then processing will stop at the first error.</p>
4242
<p>If <code>ordered</code> is not true, then the bulk operation will attempt to continue processing even after the first failure.</p>
43-
<p><code>write_concern</code> should contain the write concern you wish to have applied to all operations within the bulk operation.</p>
43+
<p><code>write_concern</code> contains the write concern for all operations in the bulk operation. If NULL, the collection's write concern is used. The global default is acknowledged writes: MONGOC_WRITE_CONCERN_W_DEFAULT.</p>
4444
</section>
4545

4646
<section id="errors">

doc/mongoc_collection_set_write_concern.page

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ mongoc_collection_set_write_concern (mongoc_collection_t *collection,
2828

2929
<section id="description">
3030
<title>Description</title>
31-
<p>Sets the default write concern to use for operations on <code>collection</code> not specifying a write concern.</p>
31+
<p>Sets the write concern to use for operations on <code>collection</code>.</p>
32+
<p>The default write concern is MONGOC_WRITE_CONCERN_W_DEFAULT: the driver blocks awaiting basic acknowledgment of write operations from MongoDB. This is the correct write concern for the great majority of applications.</p>
3233
</section>
3334

3435
</page>

doc/mongoc_database_set_write_concern.page

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
mongoc_database_set_write_concern (mongoc_database_t *database,
2020
const mongoc_write_concern_t *write_concern);
2121
]]></code></synopsis>
22-
<p>This function sets the default write concern to use on operations performed with <code>database</code>. Collections created with <link xref="mongoc_database_get_collection">mongoc_database_get_collection()</link> after this call will inherit this write concern.</p>
22+
<p>This function sets the write concern to use on operations performed with <code>database</code>. Collections created with <link xref="mongoc_database_get_collection">mongoc_database_get_collection()</link> after this call will inherit this write concern.</p>
23+
<p>The default write concern is MONGOC_WRITE_CONCERN_W_DEFAULT: the driver blocks awaiting basic acknowledgment of write operations from MongoDB. This is the correct write concern for the great majority of applications.</p>
2324
</section>
2425

2526
<section id="parameters">

0 commit comments

Comments
 (0)