diff options
author | Tyler Seip <Tyler.Seip@mongodb.com> | 2021-08-03 19:28:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-03 20:52:45 +0000 |
commit | 663e90bbe862969572246b7b442845ed83a2472d (patch) | |
tree | aa35829a95fbdef534e128ee7dd767bbd4e1903f /src/mongo/s/query | |
parent | 3787dc4952ec06c01a4b652f5e6ed9c30dce98bf (diff) | |
download | mongo-663e90bbe862969572246b7b442845ed83a2472d.tar.gz |
SERVER-55581: Return ScopedDbConnection to connection pool in cluster aggregation planner
Diffstat (limited to 'src/mongo/s/query')
-rw-r--r-- | src/mongo/s/query/cluster_aggregation_planner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_aggregation_planner.cpp b/src/mongo/s/query/cluster_aggregation_planner.cpp index 855d11db881..507e9adf9e4 100644 --- a/src/mongo/s/query/cluster_aggregation_planner.cpp +++ b/src/mongo/s/query/cluster_aggregation_planner.cpp @@ -499,6 +499,7 @@ BSONObj getUnshardedCollInfo(OperationContext* opCtx, ScopedDbConnection conn(shard->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(); |