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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.14, mongodb-3.0
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved:
              9 years, 19 weeks, 6 days ago