summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Seip <Tyler.Seip@mongodb.com>2021-08-09 16:29:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-09 16:43:29 +0000
commitb4e064826b951bd9890c0cf62ae3ccc8a73917c0 (patch)
tree621e0080269f0b1a30adaf7b64cba8de34922aaf
parent06d4cb4869e332d7bce197f3f50f9c71e8febca9 (diff)
downloadmongo-b4e064826b951bd9890c0cf62ae3ccc8a73917c0.tar.gz
SERVER-55581: Return ScopedDbConnection to connection pool in cluster aggregate
-rw-r--r--src/mongo/s/commands/cluster_aggregate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_aggregate.cpp b/src/mongo/s/commands/cluster_aggregate.cpp
index 4a48f8819dd..e2afbe33481 100644
--- a/src/mongo/s/commands/cluster_aggregate.cpp
+++ b/src/mongo/s/commands/cluster_aggregate.cpp
@@ -647,6 +647,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();