diff options
author | Tyler Seip <Tyler.Seip@mongodb.com> | 2021-08-09 16:25:08 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-09 16:45:49 +0000 |
commit | e830129078cb6c6d7c90b50ce62ab7f6669b12ec (patch) | |
tree | 7dc7dae1115f98b8be32418b00af399f69a4b08b | |
parent | 470efbe1f57c3aaaccb5c27a5bb0c07b2cbcbf13 (diff) | |
download | mongo-e830129078cb6c6d7c90b50ce62ab7f6669b12ec.tar.gz |
SERVER-55581: Return ScopedDbConnection to connection pool in cluster aggregate
-rw-r--r-- | src/mongo/s/query/cluster_aggregate.cpp | 1 |
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(); |