Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2463

update rs.conf() to always display votes in a replica set

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.6.3
    • Component/s: Admin, Replication
    • None
    • Environment:
      any

      When using the rs.conf() helper, it should always display the number of votes, even if it is the default of 1 and even if it's a an arbiter or priority 0. It currently does not display votes if they are set to 1.

      It'd be great to see something like this:

      {
              "_id" : "replicaset",
              "version" : 5,
              "members" : [
                      {
                              "_id" : 0,
                              "host" : "ra:27017",
                              "votes" : 1
                      },
                      {
                              "_id" : 1,
                              "host" : "rb:27017",
                              "votes" : 1
                      },
                      {
                              "_id" : 2,
                              "host" : "rc:27017",
                              "votes" : 1
                      },
                      {
                              "_id" : 3,
                              "host" : "arbiter:29001",
                              "arbiterOnly" : true,
                              "votes": 1
                      },
                      {
                              "_id" : 4,
                              "host" : "rd:27017",
                              "priority" : 0,
                              "slaveDelay" : 28800,
                              "votes": 1
                      }
              ]
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            brennan Brennan Pang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: