-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
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"
- is related to
-
SERVER-35020 Remove references to oplog.$main
- Backlog
-
SERVER-34156 Consolidate to a single replication API method for checking if a replica set is being used
- Closed