Commit 91d1eebf authored by Steve Müller's avatar Steve Müller Committed by GitHub

Merge pull request #2622 from jnvsor/mscdedcode

MasterSlaveConnection::connect: Remove dead code
parents 036abc08 9569134a
......@@ -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