summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2015-09-11 17:25:13 -0400
committerRandolph Tan <randolph@10gen.com>2015-09-11 17:25:13 -0400
commitfb567f59a0338d710d3c63b218b5ad062685e310 (patch)
tree03d39b735b4cfaaff84b64aa1a8d2e7f008f9555
parent23170a4d6251cd57de2179905d9fcb5ec1e4a115 (diff)
downloadmongo-fb567f59a0338d710d3c63b218b5ad062685e310.tar.gz
SERVER-20383 Cleanup connections after every ChunkManagerTest
-rw-r--r--src/mongo/dbtests/sharding.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/dbtests/sharding.cpp b/src/mongo/dbtests/sharding.cpp
index 5d4f76825bb..112c422047f 100644
--- a/src/mongo/dbtests/sharding.cpp
+++ b/src/mongo/dbtests/sharding.cpp
@@ -132,6 +132,8 @@ public:
virtual ~ChunkManagerTest() {
// Reset the redirection
ConnectionString::setConnectionHook(NULL);
+ ScopedDbConnection::clearPool();
+ ShardConnection::clearPool();
}
string collName() {