includes/db/loadbalancer/LBFactory.php 1 location
|
@@ 56-58 (lines=3) @@
|
| 53 |
|
* @TODO: inject objects via dependency framework |
| 54 |
|
*/ |
| 55 |
|
public function __construct( array $conf ) { |
| 56 |
|
if ( isset( $conf['readOnlyReason'] ) && is_string( $conf['readOnlyReason'] ) ) { |
| 57 |
|
$this->readOnlyReason = $conf['readOnlyReason']; |
| 58 |
|
} |
| 59 |
|
$this->chronProt = $this->newChronologyProtector(); |
| 60 |
|
$this->trxProfiler = Profiler::instance()->getTransactionProfiler(); |
| 61 |
|
// Use APC/memcached style caching, but avoids loops with CACHE_DB (T141804) |
includes/db/loadbalancer/LoadBalancer.php 1 location
|
@@ 116-118 (lines=3) @@
|
| 113 |
|
$this->mErrorConnection = false; |
| 114 |
|
$this->mAllowLagged = false; |
| 115 |
|
|
| 116 |
|
if ( isset( $params['readOnlyReason'] ) && is_string( $params['readOnlyReason'] ) ) { |
| 117 |
|
$this->readOnlyReason = $params['readOnlyReason']; |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
if ( isset( $params['loadMonitor'] ) ) { |
| 121 |
|
$this->mLoadMonitorClass = $params['loadMonitor']; |