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

Clarify members[n] array references on replica set configuration

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      The documentation of replica sets is not explicit enough that cfg.members is a 0-indexed array rather than an associative array:
      http://docs.mongodb.org/manual/administration/replica-sets/

      For example, cfg.members[1] is referring to the second member of the array, not the member with _id: 1. Initially the _ids will match, but this won't be the case if members are deleted from a replica set.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 19 weeks ago