includes/db/loadbalancer/LBFactory.php 1 location
|
@@ 54-56 (lines=3) @@
|
| 51 |
|
* @param array $conf |
| 52 |
|
*/ |
| 53 |
|
public function __construct( array $conf ) { |
| 54 |
|
if ( isset( $conf['readOnlyReason'] ) && is_string( $conf['readOnlyReason'] ) ) { |
| 55 |
|
$this->readOnlyReason = $conf['readOnlyReason']; |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
$this->chronProt = $this->newChronologyProtector(); |
| 59 |
|
$this->trxProfiler = Profiler::instance()->getTransactionProfiler(); |
includes/db/loadbalancer/LoadBalancer.php 1 location
|
@@ 114-116 (lines=3) @@
|
| 111 |
|
$this->mErrorConnection = false; |
| 112 |
|
$this->mAllowLagged = false; |
| 113 |
|
|
| 114 |
|
if ( isset( $params['readOnlyReason'] ) && is_string( $params['readOnlyReason'] ) ) { |
| 115 |
|
$this->readOnlyReason = $params['readOnlyReason']; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
if ( isset( $params['loadMonitor'] ) ) { |
| 119 |
|
$this->mLoadMonitorClass = $params['loadMonitor']; |