diff options
Diffstat (limited to 'src/mongo/client/sdam/server_description.cpp')
| -rw-r--r-- | src/mongo/client/sdam/server_description.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/sdam/server_description.cpp b/src/mongo/client/sdam/server_description.cpp index a3e8b7f0899..babe5d1a777 100644 --- a/src/mongo/client/sdam/server_description.cpp +++ b/src/mongo/client/sdam/server_description.cpp @@ -209,7 +209,7 @@ void ServerDescription::parseTypeFromHelloReply(const BSONObj helloReply) { t = ServerType::kMongos; } else if (hasSetName && helloReply.getBoolField("hidden")) { t = ServerType::kRSOther; - } else if (hasSetName && helloReply.getBoolField("isWritablePrimary")) { + } else if (hasSetName && helloReply.getBoolField("ismaster")) { t = ServerType::kRSPrimary; } else if (hasSetName && helloReply.getBoolField("secondary")) { t = ServerType::kRSSecondary; |
