From f75457b18a21d5782e557855e22430a91151e2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 6 Dec 2021 16:12:10 +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 --- src/Connection.php | 1 + src/Mysql/PDO.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection.php b/src/Connection.php index 4c1c1b2..998c780 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -212,6 +212,7 @@ class Connection extends Component */ public function slaveInstance(): PDO { + var_dump($this->slaveConfig); if (empty($this->slaveConfig) || Db::transactionsActive()) { return $this->masterInstance(); } diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index b7b244b..04c4006 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -44,7 +44,6 @@ class PDO implements StopHeartbeatCheck */ public function __construct(array $config) { - var_dump($config); $this->dbname = $config['dbname']; $this->cds = $config['cds']; $this->username = $config['username'];