From 1aef68902b4b106be2a9ce57d34f2cfafcae3d27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 5 Jul 2021 15:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Pool/ClientsPool.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/System/Pool/ClientsPool.php b/System/Pool/ClientsPool.php index 07468f7b..f5cb8642 100644 --- a/System/Pool/ClientsPool.php +++ b/System/Pool/ClientsPool.php @@ -82,11 +82,13 @@ class ClientsPool extends Component } else { $min = Config::get('databases.pool.min', 1); - $length = $this->getChannel($name)->length(); - if ($length > $min) { - $this->flush($min); - } - $this->debug("$name -> ($length:$min)"); + var_dump(array_keys(static::$_connections)); + +// $length = $this->getChannel($name)->length(); +// if ($length > $min) { +// $this->flush($min); +// } +// $this->debug("$name -> ($length:$min)"); } }