We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c6aae6 commit 5315214Copy full SHA for 5315214
postgresql/src/storages/postgres/detail/pool.cpp
@@ -590,7 +590,14 @@ void ConnectionPool::Clear() {
590
while (conn_consumer_.PopNoblock(connection)) {
591
delete connection;
592
}
593
+
594
+ // A close task may still call Push(),
595
+ // so cleanup queue after the task storage
596
close_task_storage_.CancelAndWait();
597
598
+ queue_.reset();
599
+ std::move(conn_consumer_).Reset();
600
+ std::move(conn_producer_).Reset();
601
602
603
void ConnectionPool::CleanupConnection(Connection* connection) {
0 commit comments