includes/db/loadbalancer/LoadBalancer.php 1 location
|
@@ 105-107 (lines=3) @@
|
| 102 |
|
$this->mErrorConnection = false; |
| 103 |
|
$this->mAllowLagged = false; |
| 104 |
|
|
| 105 |
|
if ( isset( $params['readOnlyReason'] ) && is_string( $params['readOnlyReason'] ) ) { |
| 106 |
|
$this->readOnlyReason = $params['readOnlyReason']; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
if ( isset( $params['loadMonitor'] ) ) { |
| 110 |
|
$this->mLoadMonitorClass = $params['loadMonitor']; |
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(); |