Skip to content

Commit d124cc8

Browse files
authored
DOCS 16510 default write concern info (#5525) (#5547)
* DOCS-16510 default write concern * DOCS-16510 default write concern
1 parent 4198f03 commit d124cc8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

source/reference/write-concern.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,15 @@ Write concern can include the following fields:
6969
~~~~~~~~~~~~
7070

7171
The ``w`` option requests acknowledgment that the write operation has
72-
propagated to a specified number of :binary:`~bin.mongod` instances or to
73-
:binary:`~bin.mongod` instances with specified tags.
72+
propagated to a specified number of :binary:`~bin.mongod` instances or
73+
to :binary:`~bin.mongod` instances with specified tags. If the write
74+
concern is missing the ``w`` field, MongoDB sets the ``w`` option to the
75+
default write concern.
76+
77+
.. note::
78+
79+
If you use the :dbcommand:`setDefaultRWConcern` to set the default
80+
write concern, you must specify a ``w`` field value.
7481

7582
Using the ``w`` option, the following ``w: <value>`` write concerns are
7683
available:

0 commit comments

Comments
 (0)