File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,14 @@ specified for the operation:
112
112
In the legacy ``mongo`` shell, these operations use the specified read
113
113
preference.
114
114
115
+ Write Preference Behavior
116
+ -------------------------
117
+
118
+ :ref:`Retryable writes <retryable-writes>` are enabled by default in
119
+ :binary:`mongosh`. Retryable writes were disabled by default in the
120
+ legacy :binary:`mongo` shell. To disable retryable writes, use
121
+ :option:`--retryWrites=false <mongosh --retryWrites>`.
122
+
115
123
Numeric Values
116
124
--------------
117
125
Original file line number Diff line number Diff line change @@ -452,8 +452,10 @@ Session Options
452
452
453
453
.. option:: --retryWrites
454
454
455
- Enables :manual:`retryable writes </core/retryable-writes/>` as the
456
- default for sessions in the |mdb-shell|.
455
+ Enables :ref:`retryable-writes`. Retryable writes are enabled by
456
+ default in :binary:`mongosh`. Retryable writes are disabled by
457
+ default in the legacy :binary:`mongo` shell. To disable retryable
458
+ writes, use :option:`--retryWrites=false <mongosh --retryWrites>`.
457
459
458
460
For more information on sessions, see :ref:`sessions`.
459
461
You can’t perform that action at this time.
0 commit comments