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

Remove ReplicationCoordinator::isMasterForReportingPurposes()

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

      ReplicationCoordinator::isMasterForReportingPurposes() is only used in appendReplicationInfo() and for SNMP (in IsMasterCallback). Since we've removed master and slave, we can get rid of the dead code. SNMP will need to get the result in other ways.

      redbeard0531 found that ReplicationCoordinator::isMasterForReportingPurposes() reports a wrong result if the node is in catchup mode or drain mode.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: