summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Seip <Tyler.Seip@mongodb.com>2021-08-09 16:25:08 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-09 16:45:49 +0000
commite830129078cb6c6d7c90b50ce62ab7f6669b12ec (patch)
tree7dc7dae1115f98b8be32418b00af399f69a4b08b
parent470efbe1f57c3aaaccb5c27a5bb0c07b2cbcbf13 (diff)
downloadmongo-e830129078cb6c6d7c90b50ce62ab7f6669b12ec.tar.gz
SERVER-55581: Return ScopedDbConnection to connection pool in cluster aggregate
-rw-r--r--src/mongo/s/query/cluster_aggregate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_aggregate.cpp b/src/mongo/s/query/cluster_aggregate.cpp
index 74f2132b4b0..ada7667edc9 100644
--- a/src/mongo/s/query/cluster_aggregate.cpp
+++ b/src/mongo/s/query/cluster_aggregate.cpp
@@ -450,6 +450,7 @@ 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();