-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
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