[DOCS-9891] Modify write concern - incorrect instructions Created: 14/Feb/17  Updated: 14/Feb/17  Resolved: 14/Feb/17

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Alexander Marquardt Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 7 years, 1 day ago

 Description   

RE: https://docs.mongodb.com/manual/core/replica-set-write-concern/#modify-default-write-concern

In the instructions for modifying the write concern, the instructions would clear all of the existing settings before changing the getLastErrorDefaults.

The second line in the instructions below seems incorrect.

cfg = rs.conf()
cfg.settings = {}
cfg.settings.getLastErrorDefaults = { w: "majority", wtimeout: 5000 }
rs.reconfig(cfg)

CC: daniel.coupal



 Comments   
Comment by Githook User [ 14/Feb/17 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-9891: rs settings
Branch: v3.2
https://github.com/mongodb/docs/commit/f53de1539658cb368a4816f3061bf901835384fd

Comment by Githook User [ 14/Feb/17 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-9891: rs settings
Branch: master
https://github.com/mongodb/docs/commit/3ce5b783c5cb7a6741763fb18d9cc6fcacf07607

Generated at Thu Feb 08 07:59:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.