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

rs.add() - _id is now optional in configuration document.

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.14, mongodb-3.0
    • None
    • manual
    • None

    Description

      Before SERVER-14118, both _id and host were mandatory fields in the configuration document passed to rs.add():

      http://docs.mongodb.org/manual/reference/method/rs.add/#pass-a-member-configuration-document-to-rs-add

      As of commit 2e68421 which originated as pull request #688, _id will be computed using the same method when passing the host string to rs.add():

      http://docs.mongodb.org/manual/reference/method/rs.add/#pass-a-hostname-string-to-rs-add

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 9 weeks ago