diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2020-10-20 22:12:53 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-26 16:38:32 +0000 |
commit | 0c09bf00d7fdadc80215f7cd4829271c2e6a0dc8 (patch) | |
tree | 8aa874228884509b62849d59e8b0b7c4267e62db /src/mongo/s/client/sharding_connection_hook.cpp | |
parent | 051ad2e47f7ce1f5b76d89b65515c23777791919 (diff) | |
download | mongo-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.cpp | 4 |
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)); |