diff options
author | Misha Tyulenev <misha@mongodb.com> | 2016-03-03 13:39:56 -0500 |
---|---|---|
committer | Misha Tyulenev <misha@mongodb.com> | 2016-03-03 13:40:25 -0500 |
commit | bc196517c4162993edbe6ca3669b9cd70865deec (patch) | |
tree | 9bbc44e7875ee29ae3140a8125073ea289d35a5a /src/mongo/s/client/sharding_connection_hook.cpp | |
parent | 9778d0678715fc3f9b9f725cfd11ea85ce03b2fc (diff) | |
download | mongo-bc196517c4162993edbe6ca3669b9cd70865deec.tar.gz |
SERVER-22318 remove SCCC support
Diffstat (limited to 'src/mongo/s/client/sharding_connection_hook.cpp')
-rw-r--r-- | src/mongo/s/client/sharding_connection_hook.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/mongo/s/client/sharding_connection_hook.cpp b/src/mongo/s/client/sharding_connection_hook.cpp index 05bf53722a6..7f325611db9 100644 --- a/src/mongo/s/client/sharding_connection_hook.cpp +++ b/src/mongo/s/client/sharding_connection_hook.cpp @@ -136,14 +136,13 @@ void ShardingConnectionHook::onCreate(DBClientBase* conn) { return _shardingRequestMetadataWriter(_shardedConnections, metadataBob, hostStringData); }); - // For every SCC created, add a hook that will allow fastest-config-first config reads if - // the appropriate server options are set. if (conn->type() == ConnectionString::SYNC) { - SyncClusterConnection* scc = dynamic_cast<SyncClusterConnection*>(conn); - if (scc) { - scc->attachQueryHandler(new SCCFastQueryHandler); - } - } else if (conn->type() == ConnectionString::MASTER) { + throw UserException(ErrorCodes::UnsupportedFormat, + str::stream() << "Unrecognized connection string type: " << conn->type() + << "."); + } + + if (conn->type() == ConnectionString::MASTER) { BSONObj isMasterResponse; if (!conn->runCommand("admin", BSON("ismaster" << 1), isMasterResponse)) { uassertStatusOK(getStatusFromCommandResult(isMasterResponse)); @@ -163,12 +162,6 @@ void ShardingConnectionHook::onCreate(DBClientBase* conn) { << ". Expected either 0 or 1", configServerModeNumber == 0 || configServerModeNumber == 1); - BSONElement setName = isMasterResponse["setName"]; - status = grid.forwardingCatalogManager()->scheduleReplaceCatalogManagerIfNeeded( - configServerModeNumber == 0 ? CatalogManager::ConfigServerMode::SCCC - : CatalogManager::ConfigServerMode::CSRS, - setName.type() == String ? setName.valueStringData() : StringData(), - static_cast<DBClientConnection*>(conn)->getServerHostAndPort()); uassertStatusOK(status); } } |