From b308f13e596bc7e85ebe0a910571ec20043a03b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 17 Feb 2021 00:47:25 +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/Abstracts/Pool.php | 1 - System/Pool/Connection.php | 2 ++ System/Pool/Redis.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 663ef8ab..089c61ff 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -205,7 +205,6 @@ abstract class Pool extends Component } } - protected int $creates = 0; protected int $lastTime = 0; diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 7e2eef12..f475322d 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -25,6 +25,8 @@ class Connection extends Pool /** @var PDO[] */ protected array $connections = []; + public int $creates = 0; + /** * @param $timeout diff --git a/System/Pool/Redis.php b/System/Pool/Redis.php index 1245fe65..d1b98e44 100644 --- a/System/Pool/Redis.php +++ b/System/Pool/Redis.php @@ -23,6 +23,7 @@ class Redis extends Pool private int $_create = 0; + public int $creates = 0; /** * @param $value