summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Seip <Tyler.Seip@mongodb.com>2021-08-12 21:42:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-12 22:02:34 +0000
commit7bb37623c2ec55ea6aa66c9653b7be3003547eb7 (patch)
tree6d7f82db184516a81a75d6611b7814d64df23a40
parentba9b762447e745e7b3ec32692b618ffed1a48e14 (diff)
downloadmongo-7bb37623c2ec55ea6aa66c9653b7be3003547eb7.tar.gz
Revert "SERVER-55581: Return ScopedDbConnection to connection pool in cluster aggregate"
This reverts commit e830129078cb6c6d7c90b50ce62ab7f6669b12ec.
-rw-r--r--src/mongo/s/query/cluster_aggregate.cpp1
1 files changed, 0 insertions, 1 deletions
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<BSONObj> 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();