Remove ReplicationCoordinator::isMasterForReportingPurposes()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Replication
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
            Brad Cater
            Reporter:
            Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: