summaryrefslogtreecommitdiff
path: root/src/mongo/client/connpool.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2012-06-18 19:52:22 -0400
committerSpencer T Brody <spencer@10gen.com>2012-06-20 15:25:10 -0400
commit2a2689e7a5823291b125fabddf981ca87ef9a3f0 (patch)
tree096b17b0fa07d0c23ce9ac84502028cfaf2c4f69 /src/mongo/client/connpool.cpp
parent849a4fa53f6c99b7b72a9772bef908cb7e88a416 (diff)
downloadmongo-2a2689e7a5823291b125fabddf981ca87ef9a3f0.tar.gz
Always use internal credetials when connecting to the config servers. SERVER-1456
Diffstat (limited to 'src/mongo/client/connpool.cpp')
-rw-r--r--src/mongo/client/connpool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/client/connpool.cpp b/src/mongo/client/connpool.cpp
index d79265d070f..ebfc187346a 100644
--- a/src/mongo/client/connpool.cpp
+++ b/src/mongo/client/connpool.cpp
@@ -80,7 +80,11 @@ namespace mongo {
_pool.pop();
all.push_back( c );
bool res;
+ // When a connection is in the pool it doesn't have an AuthenticationTable set.
+ c.conn->setAuthenticationTable(
+ AuthenticationTable::getInternalSecurityAuthenticationTable() );
c.conn->isMaster( res );
+ c.conn->clearAuthenticationTable();
}
for ( vector<StoredConnection>::iterator i=all.begin(); i != all.end(); ++i ) {