diff --git a/source/core/replica-set-write-concern.txt b/source/core/replica-set-write-concern.txt index 811c4de96f4..ddada79ba3f 100644 --- a/source/core/replica-set-write-concern.txt +++ b/source/core/replica-set-write-concern.txt @@ -110,21 +110,8 @@ documentation on write concern, see :ref:`write-concern`. Modify Default Write Concern ---------------------------- -.. TODO need to remove most of this section and rewrite what's left. - Post 2.6 though. - -You can modify the default write concern for a replica set by setting -the :rsconf:`settings.getLastErrorDefaults` setting -in the :doc:`replica set configuration -`. The following sequence of commands -creates a configuration that waits for the write operation to complete -on a majority of the voting members before returning: - -.. code-block:: javascript - - cfg = rs.conf() - cfg.settings.getLastErrorDefaults = { w: "majority", wtimeout: 5000 } - rs.reconfig(cfg) +You can modify the default write concern for a replica set by issuing +the :dbcommand:`setDefaultRWConcern` command. If you issue a write operation with a specific write concern, the write operation uses its own write concern instead of the default.