Skip to content

Commit 1147ebf

Browse files
committed
fix(sdam): don't remove unknown servers in topology updates
NODE-2214
1 parent 5025159 commit 1147ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/sdam/topology_description.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class TopologyDescription {
191191
}
192192

193193
if (topologyType === TopologyType.ReplicaSetNoPrimary) {
194-
if ([ServerType.Mongos, ServerType.Unknown].indexOf(serverType) >= 0) {
194+
if ([ServerType.Standalone, ServerType.Mongos].indexOf(serverType) >= 0) {
195195
serverDescriptions.delete(address);
196196
}
197197

0 commit comments

Comments
 (0)