File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,15 @@ Write concern can include the following fields:
69
69
~~~~~~~~~~~~
70
70
71
71
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.
74
81
75
82
Using the ``w`` option, the following ``w: <value>`` write concerns are
76
83
available:
You can’t perform that action at this time.
0 commit comments