modify plugin name
This commit is contained in:
+2
-4
@@ -87,8 +87,6 @@ class Connection extends Component
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
* @throws ContainerExceptionInterface
|
|
||||||
* @throws NotFoundExceptionInterface
|
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
@@ -120,10 +118,10 @@ class Connection extends Component
|
|||||||
{
|
{
|
||||||
$connections = $this->connections();
|
$connections = $this->connections();
|
||||||
$pool = Config::get('databases.pool.max', 10);
|
$pool = Config::get('databases.pool.max', 10);
|
||||||
|
|
||||||
$connections->initConnections('Mysql:' . $this->cds, $pool);
|
|
||||||
if (!empty($this->slaveConfig) && $this->cds != $this->slaveConfig['cds']) {
|
if (!empty($this->slaveConfig) && $this->cds != $this->slaveConfig['cds']) {
|
||||||
$connections->initConnections('Mysql:' . $this->slaveConfig['cds'], $pool);
|
$connections->initConnections('Mysql:' . $this->slaveConfig['cds'], $pool);
|
||||||
|
} else {
|
||||||
|
$connections->initConnections('Mysql:' . $this->cds, $pool);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user