summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmirsaman Memaripour <amirsaman.memaripour@mongodb.com>2022-05-10 19:22:40 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-12 19:37:55 +0000
commite1d4cd0bffd26fbbd3d0c0f58eea0ff4b4982238 (patch)
treee6337cbaa755226f82e7d6ada28f73dc1ab9dccc
parentd8d9369e77430c69c3e57a4d1b0e79f90011e607 (diff)
downloadmongo-e1d4cd0bffd26fbbd3d0c0f58eea0ff4b4982238.tar.gz
SERVER-59400 Revert "SERVER-55581: Return ScopedDbConnection to connection pool in cluster aggregation planner"
This reverts commit 663e90bbe862969572246b7b442845ed83a2472d. (cherry picked from commit 81fa710687e399d7aa2bd093987396c6f6a36956)
-rw-r--r--src/mongo/s/query/cluster_aggregation_planner.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/s/query/cluster_aggregation_planner.cpp b/src/mongo/s/query/cluster_aggregation_planner.cpp
index 557ae2a55c6..3f970f2f8c1 100644
--- a/src/mongo/s/query/cluster_aggregation_planner.cpp
+++ b/src/mongo/s/query/cluster_aggregation_planner.cpp
@@ -495,7 +495,6 @@ 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();