summaryrefslogtreecommitdiff
path: root/src/mongo/client/connpool.cpp
diff options
context:
space:
mode:
authorMisha Tyulenev <misha@mongodb.com>2016-03-10 17:30:44 -0500
committerMisha Tyulenev <misha@mongodb.com>2016-03-10 18:18:38 -0500
commiteaef6254d3bcb27657de670ec1b9c797965e7c82 (patch)
tree09d29bd80943025732ebd3139deeea0191d8e171 /src/mongo/client/connpool.cpp
parent41a738c7629cd52b357b0bce6650182219ae9088 (diff)
downloadmongo-eaef6254d3bcb27657de670ec1b9c797965e7c82.tar.gz
SERVER-22320 remove SYNC option and SyncClusterConnection
Diffstat (limited to 'src/mongo/client/connpool.cpp')
-rw-r--r--src/mongo/client/connpool.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/client/connpool.cpp b/src/mongo/client/connpool.cpp
index 2a019db9787..4bdc263cf33 100644
--- a/src/mongo/client/connpool.cpp
+++ b/src/mongo/client/connpool.cpp
@@ -41,7 +41,6 @@
#include "mongo/client/connection_string.h"
#include "mongo/client/global_conn_pool.h"
#include "mongo/client/replica_set_monitor.h"
-#include "mongo/client/syncclusterconnection.h"
#include "mongo/executor/connection_pool_stats.h"
#include "mongo/util/exit.h"
#include "mongo/util/log.h"
@@ -474,10 +473,9 @@ void ScopedDbConnection::done() {
void ScopedDbConnection::_setSocketTimeout() {
if (!_conn)
return;
+
if (_conn->type() == ConnectionString::MASTER)
- ((DBClientConnection*)_conn)->setSoTimeout(_socketTimeout);
- else if (_conn->type() == ConnectionString::SYNC)
- ((SyncClusterConnection*)_conn)->setAllSoTimeouts(_socketTimeout);
+ static_cast<DBClientConnection*>(_conn)->setSoTimeout(_socketTimeout);
}
ScopedDbConnection::~ScopedDbConnection() {