Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 3083ad8

Browse files
author
Saghm Rossi
committed
server should be RsOther if hidden
1 parent c438366 commit 3083ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/topology/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl ServerDescription {
157157
ServerType::Mongos
158158
} else if ismaster.is_master && !set_name_empty {
159159
ServerType::RSPrimary
160-
} else if ismaster.is_secondary && !set_name_empty {
160+
} else if ismaster.is_secondary && !set_name_empty && !ismaster.hidden {
161161
ServerType::RSSecondary
162162
} else if ismaster.arbiter_only && !set_name_empty {
163163
ServerType::RSArbiter

0 commit comments

Comments
 (0)