Skip to content

Commit 19184a3

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-14791 default write concern (#6079) (#6080)
Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com>
1 parent 447f76e commit 19184a3

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

source/core/transactions.txt

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,19 @@ You can set the transaction-level :doc:`write concern
643643
concern for the commit.
644644

645645
- If the transaction-level write concern and the session-level write
646-
concern are unset, transaction-level write concern defaults to the
647-
client-level write concern. By default, client-level write concern is
648-
:writeconcern:`w: 1 <\<number\>>`. See also
649-
:doc:`/reference/mongodb-defaults`.
650-
646+
concern are unset, the transaction-level write concern defaults to the
647+
client-level write concern of:
648+
649+
- :writeconcern:`w: "majority" <"majority">` in MongoDB 5.0 and later,
650+
with differences for deployments containing :ref:`arbiters
651+
<replica-set-arbiter-configuration>`. See
652+
:ref:`wc-default-behavior`.
653+
654+
- :writeconcern:`w: 1 <\<number\>>` in MongoDB 4.4 and earlier.
655+
656+
.. seealso::
657+
658+
:doc:`/reference/mongodb-defaults`
651659

652660
Transactions support all write concern :ref:`w <wc-w>`
653661
values, including:

0 commit comments

Comments
 (0)