summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragirbal <antoine@10gen.com>2011-11-07 14:41:24 -0800
committerEliot Horowitz <eliot@10gen.com>2011-11-14 15:51:35 -0500
commit58a501e059ba633bc6e331a8114638ac6fba2ac0 (patch)
tree054c18e58600dbf0453cb3658537da70c05bbe09
parentd4ba20e72751af8982ef1318cd3e61fa17f67fed (diff)
downloadmongo-58a501e059ba633bc6e331a8114638ac6fba2ac0.tar.gz
- SERVER-4114: also add auth hook to shardConnectionPool
-rw-r--r--s/d_state.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/s/d_state.cpp b/s/d_state.cpp
index bd6f6ff0121..393df986533 100644
--- a/s/d_state.cpp
+++ b/s/d_state.cpp
@@ -318,6 +318,7 @@ namespace mongo {
if (!done) {
LOG(1) << "adding sharding hook" << endl;
pool.addHook(new ShardingConnectionHook(false));
+ shardConnectionPool.addHook(new ShardingConnectionHook(true));
done = true;
}
}