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

Remove master-slave server status and isMaster code

    • Fully Compatible
    • Repl 2020-06-29

      This code is for when not "usingReplSets()": https://github.com/mongodb/mongo/blob/db787fb0a1627756a2a9204b2716ea4f4b9f3ea7/src/mongo/db/repl/replication_info.cpp#L93-L154

      This appears to be for master slave only, since we check for isReplEnabled here: https://github.com/mongodb/mongo/blob/db787fb0a1627756a2a9204b2716ea4f4b9f3ea7/src/mongo/db/repl/replication_info.cpp#L165-L167

      And for isMaster we pass in level=0: https://github.com/mongodb/mongo/blob/db787fb0a1627756a2a9204b2716ea4f4b9f3ea7/src/mongo/db/repl/replication_info.cpp#L349

      grepping for usingReplSets checks may find other code to delete. It now seems redundant with "isReplEnabled"

            Assignee:
            grace.luong@mongodb.com Grace Luong (Inactive)
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: