Skip to content

Commit 33b9ffc

Browse files
(DOCS-13394): Deprecate getLastErrorDefaults custom values
1 parent d180237 commit 33b9ffc

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

source/includes/extracts-4.4-changes.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,4 +499,15 @@ content: |
499499
500500
Starting in version 4.4, MongoDB ignores the :ref:`verbose
501501
<cmd-mapreduce-verbose>` option.
502+
---
503+
ref: 4.4-changes-getLastErrorDefaults-deprecation
504+
content: |
505+
506+
Starting in version 4.4, MongoDB deprecates specifying a
507+
:rsconf:`settings.getLastErrorDefaults` value other than the default
508+
of ``{ w: 1, wtimeout: 0 }``. MongoDB 4.4 honors any write concern
509+
value that you specify, however future MongoDB versions might not
510+
honor values other than the default. Instead, use the
511+
:dbcommand:`setDefaultRWConcern` command to set the default read or
512+
write concern configuration for a replica set or sharded cluster.
502513
...

source/reference/replica-configuration.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ Replica Set Configuration Fields
473473
not set, the default write concern for the replica set only
474474
requires confirmation from the primary.
475475

476+
.. important::
477+
478+
.. include:: /includes/extracts/4.4-changes-getLastErrorDefaults-deprecation.rst
479+
476480
.. rsconf:: settings.getLastErrorModes
477481

478482
*Optional*.

source/release-notes/4.4-compatibility.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ Initial Sync Restrictions on Operations
6161

6262
.. include:: /includes/extracts/4.4-changes-repl-state-restrictions.rst
6363

64+
Custom ``getLastErrorDefaults`` Values Deprecated
65+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66+
67+
.. include:: /includes/extracts/4.4-changes-getLastErrorDefaults-deprecation.rst
68+
6469
Projection Compatibility Changes
6570
--------------------------------
6671

0 commit comments

Comments
 (0)