From 7bb37623c2ec55ea6aa66c9653b7be3003547eb7 Mon Sep 17 00:00:00 2001 From: Tyler Seip Date: Thu, 12 Aug 2021 21:42:19 +0000 Subject: Revert "SERVER-55581: Return ScopedDbConnection to connection pool in cluster aggregate" This reverts commit e830129078cb6c6d7c90b50ce62ab7f6669b12ec. --- src/mongo/s/query/cluster_aggregate.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mongo/s/query/cluster_aggregate.cpp b/src/mongo/s/query/cluster_aggregate.cpp index ada7667edc9..74f2132b4b0 100644 --- a/src/mongo/s/query/cluster_aggregate.cpp +++ b/src/mongo/s/query/cluster_aggregate.cpp @@ -450,7 +450,6 @@ BSONObj getUnshardedCollInfo(const Shard* primaryShard, const NamespaceString& n ScopedDbConnection conn(primaryShard->getConnString()); std::list all = conn->getCollectionInfos(nss.db().toString(), BSON("name" << nss.coll())); - conn.done(); if (all.empty()) { // Collection does not exist, return an empty object. return BSONObj(); -- cgit v1.2.1