summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Seip <Tyler.Seip@mongodb.com>2021-08-12 21:42:55 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-12 21:55:51 +0000
commit5f4859e07684580c4ecafdb8ea1682d2bb856ee9 (patch)
tree82119e0072dd4997bfdf95a087e318503007432c
parentb43203546722121c8160cb795aa887c55f193c3e (diff)
downloadmongo-5f4859e07684580c4ecafdb8ea1682d2bb856ee9.tar.gz
Revert "SERVER-55581: Return ScopedDbConnection to connection pool in cluster aggregate"
This reverts commit b4e064826b951bd9890c0cf62ae3ccc8a73917c0.
-rw-r--r--src/mongo/s/commands/cluster_aggregate.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_aggregate.cpp b/src/mongo/s/commands/cluster_aggregate.cpp
index e2afbe33481..4a48f8819dd 100644
--- a/src/mongo/s/commands/cluster_aggregate.cpp
+++ b/src/mongo/s/commands/cluster_aggregate.cpp
@@ -647,7 +647,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();