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

Modify write concern - incorrect instructions

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 1 day ago