Commit 9569134a authored by Jonathan Vollebregt's avatar Jonathan Vollebregt

MasterSlaveConnection::connect: Remove dead code

parent 036abc08
......@@ -173,13 +173,9 @@ class MasterSlaveConnection extends Connection
}
if ($connectionName === 'master') {
// Set slave connection to master to avoid invalid reads
if ($this->connections['slave'] && ! $this->keepSlave) {
unset($this->connections['slave']);
}
$this->connections['master'] = $this->_conn = $this->connectTo($connectionName);
// Set slave connection to master to avoid invalid reads
if ( ! $this->keepSlave) {
$this->connections['slave'] = $this->connections['master'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment