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/client/connpool.cpp | |
parent | 051ad2e47f7ce1f5b76d89b65515c23777791919 (diff) | |
download | mongo-0c09bf00d7fdadc80215f7cd4829271c2e6a0dc8.tar.gz |
SERVER-50508 Rename ConnectionType::MASTER to ConnectionType::kStandalone
Diffstat (limited to 'src/mongo/client/connpool.cpp')
-rw-r--r-- | src/mongo/client/connpool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/connpool.cpp b/src/mongo/client/connpool.cpp index 6adf8c75645..f742a8dcef8 100644 --- a/src/mongo/client/connpool.cpp +++ b/src/mongo/client/connpool.cpp @@ -80,7 +80,7 @@ using std::vector; PoolForHost::PoolForHost() : _created(0), _minValidCreationTimeMicroSec(0), - _type(ConnectionString::INVALID), + _type(ConnectionString::ConnectionType::kInvalid), _maxPoolSize(kPoolSizeUnlimited), _maxInUse(kDefaultMaxInUse), _checkedOut(0), @@ -701,7 +701,7 @@ void ScopedDbConnection::_setSocketTimeout() { if (!_conn) return; - if (_conn->type() == ConnectionString::MASTER) + if (_conn->type() == ConnectionString::ConnectionType::kStandalone) static_cast<DBClientConnection*>(_conn)->setSoTimeout(_socketTimeoutSecs); } |