Skip to content

Commit

Permalink
fix(sdam): don't remove unknown servers in topology updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Nov 5, 2019
1 parent 5025159 commit 1147ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/sdam/topology_description.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class TopologyDescription {
}

if (topologyType === TopologyType.ReplicaSetNoPrimary) {
if ([ServerType.Mongos, ServerType.Unknown].indexOf(serverType) >= 0) {
if ([ServerType.Standalone, ServerType.Mongos].indexOf(serverType) >= 0) {
serverDescriptions.delete(address);
}

Expand Down

0 comments on commit 1147ebf

Please sign in to comment.