diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-03-23 15:01:25 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-04-03 23:44:28 -0400 |
commit | a253c2b42aa124df687b54982283270f33e29994 (patch) | |
tree | 296291ec9435101ea35bf2c7e21209536d0fb792 /src/mongo/db/s/sharded_connection_info.cpp | |
parent | 03b086be7bcb082ca3b76a823560db4ab5cb0cd2 (diff) | |
download | mongo-a253c2b42aa124df687b54982283270f33e29994.tar.gz |
SERVER-23298 refactor ShardingConnectionHook and ShardingEgressMetadataHook to improve link graph
Diffstat (limited to 'src/mongo/db/s/sharded_connection_info.cpp')
-rw-r--r-- | src/mongo/db/s/sharded_connection_info.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/sharded_connection_info.cpp b/src/mongo/db/s/sharded_connection_info.cpp index 24108490b01..2dfaac42fd6 100644 --- a/src/mongo/db/s/sharded_connection_info.cpp +++ b/src/mongo/db/s/sharded_connection_info.cpp @@ -38,10 +38,10 @@ #include "mongo/client/global_conn_pool.h" #include "mongo/db/client.h" #include "mongo/db/operation_context.h" +#include "mongo/db/s/sharding_connection_hook_for_mongod.h" #include "mongo/platform/atomic_word.h" #include "mongo/s/chunk_version.h" #include "mongo/s/client/shard_connection.h" -#include "mongo/s/client/sharding_connection_hook.h" #include "mongo/util/log.h" namespace mongo { @@ -102,8 +102,8 @@ void ShardedConnectionInfo::addHook() { log() << "first cluster operation detected, adding sharding hook to enable versioning " "and authentication to remote servers"; - globalConnPool.addHook(new ShardingConnectionHook(false)); - shardConnectionPool.addHook(new ShardingConnectionHook(true)); + globalConnPool.addHook(new ShardingConnectionHookForMongod(false)); + shardConnectionPool.addHook(new ShardingConnectionHookForMongod(true)); alreadyAddedHook.store(1); } |