summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/sharding_connection_hook.cpp
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2020-10-20 22:12:53 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-26 16:38:32 +0000
commit0c09bf00d7fdadc80215f7cd4829271c2e6a0dc8 (patch)
tree8aa874228884509b62849d59e8b0b7c4267e62db /src/mongo/s/client/sharding_connection_hook.cpp
parent051ad2e47f7ce1f5b76d89b65515c23777791919 (diff)
downloadmongo-0c09bf00d7fdadc80215f7cd4829271c2e6a0dc8.tar.gz
SERVER-50508 Rename ConnectionType::MASTER to ConnectionType::kStandalone
Diffstat (limited to 'src/mongo/s/client/sharding_connection_hook.cpp')
-rw-r--r--src/mongo/s/client/sharding_connection_hook.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/client/sharding_connection_hook.cpp b/src/mongo/s/client/sharding_connection_hook.cpp
index 3d153a8012b..0a7374a240e 100644
--- a/src/mongo/s/client/sharding_connection_hook.cpp
+++ b/src/mongo/s/client/sharding_connection_hook.cpp
@@ -49,7 +49,7 @@ ShardingConnectionHook::ShardingConnectionHook(std::unique_ptr<rpc::EgressMetada
: _egressHook(std::move(egressHook)) {}
void ShardingConnectionHook::onCreate(DBClientBase* conn) {
- if (conn->type() == ConnectionString::INVALID) {
+ if (conn->type() == ConnectionString::ConnectionType::kInvalid) {
uasserted(ErrorCodes::BadValue, str::stream() << "Unrecognized connection string.");
}
@@ -72,7 +72,7 @@ void ShardingConnectionHook::onCreate(DBClientBase* conn) {
});
- if (conn->type() == ConnectionString::MASTER) {
+ if (conn->type() == ConnectionString::ConnectionType::kStandalone) {
BSONObj isMasterResponse;
if (!conn->runCommand("admin", BSON("ismaster" << 1), isMasterResponse)) {
uassertStatusOK(getStatusFromCommandResult(isMasterResponse));