From 2c81087a72c654f3b10420c69bf8603e583b6e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 4 Sep 2020 19:15:05 +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/Connection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index b3bfe0b0..c5c70627 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -188,12 +188,13 @@ class Connection extends Pool { $this->info('client has :' . $this->size($coroutineName)); [$time, $client] = $this->get($coroutineName, -1); + + $this->info('client has create :' . ($this->hasCreate[$coroutineName] ?? 0)); if ($client instanceof PDO) { return $this->saveClient($coroutineName, $client); } unset($client); - $this->info('client has create :' . ($this->hasCreate[$coroutineName] ?? 0)); if (($this->hasCreate[$coroutineName] ?? 0) >= $this->max) { [$time, $client] = $this->get($coroutineName, -1);