Skip to content

Commit f2effa2

Browse files
ianf-mongodbjeff-allen-mongo
authored andcommitted
DOCS-14440 Update getlast.error in replica set config command REMOVED
1 parent 8c68d56 commit f2effa2

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Starting in MongoDB 5.0, you cannot specify a default write concern with
2+
:rsconf:`settings.getLastErrorDefaults` other than the default of
3+
``{ w: 1, wtimeout: 0 }`` . Instead, use the
4+
:dbcommand:`setDefaultRWConcern` command to set the default read or
5+
write concern configuration for a replica set or sharded cluster.

source/reference/replica-configuration.txt

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -483,19 +483,11 @@ Replica Set Configuration Fields
483483

484484
*Type*: document
485485

486-
A document that specifies the :doc:`write concern
487-
</core/replica-set-write-concern>` for the replica set. The
488-
replica set will use this write concern only when :ref:`write
489-
operations <write-methods-incompatibility>` or
490-
:dbcommand:`getLastError` specify no other write concern.
491-
492-
If :rsconf:`settings.getLastErrorDefaults` is
493-
not set, the default write concern for the replica set only
494-
requires confirmation from the primary.
486+
Unavailable starting in MongoDB 5.0
495487

496488
.. important::
497489

498-
.. include:: /includes/extracts/4.4-changes-getLastErrorDefaults-deprecation.rst
490+
.. include:: /includes/5.0-changes-getLastErrorDefaults-removed.rst
499491

500492
.. rsconf:: settings.getLastErrorModes
501493

source/release-notes/5.0.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ Starting in MongoDB 5.0, these database commands and
357357
Replica Sets
358358
------------
359359

360+
Removed Customizable Values For getLastErrorDefaults
361+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
362+
363+
.. include:: /includes/5.0-changes-getLastErrorDefaults-removed.rst
364+
360365
``hello`` Command
361366
~~~~~~~~~~~~~~~~~
362367

0 commit comments

Comments
 (0)