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

Consolidate to a single replication API method for checking if a replica set is being used

    • Replication
    • Fully Compatible
    • Repl 2020-06-29, Repl 2023-07-24

      ReplSettings::usingReplsets(), ReplicationCoordinator::isReplEnabled(), and ReplicationCoordinator::getReplicationMode() all return the same info and so it is confusing to have separate methods and engineers are not sure which to use.
      This ticket removes ReplicationCoordinator::isReplEnabled() and ReplicationCoordinator::getReplicationMode(), renames ReplSettings::usingReplSets() to isReplSet(), and replaces all usages of the first two methods with isReplSet().

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: