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

Add command to manage the slave map

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Replication

      For diagnostic purposes it would be good to be able to get access to the slave map, and/or clear it. It might also be useful to manually add/update it.

      I'm thinking something like:

      db.adminCommand({replSetSlaveMap:1}) // dumps
      { rid:   { _id:x, host:.., optime:OpTime}, 
        rid2: { _id:x, host:.., optime:OpTime}}
      db.adminCommand({replSetSlaveMap:1, reset:true}) // clears/resets
      db.adminCommand({replSetSlaveMap:1, update:{rid:OpTime}}) // updates  ember
      

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: