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

Comment on: "reference/method/rs.add.txt"

    XMLWordPrintableJSON

Details

    Description

      In the last command of this page:

      rs.add(

      { "host": "mongodbd3.example.net:27017", "priority": 0 }

      )

      the numeric id of the server in the replicaset configuration must be included also to make it work. By example:

      rs.add(

      { "_id": 1, "host": "yval0160:27017", "priority": 0 }

      )

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            ciges José Manuel Ciges Regueiro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 51 weeks, 2 days ago