Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9891

Modify write concern - incorrect instructions

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 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

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            alexander.marquardt Alexander Marquardt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              7 years, 11 weeks, 2 days ago