From 0a806b75f1450646bf54c36567e4085968ca0829 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 16 Sep 2016 11:22:10 -0700 Subject: [PATCH] Rename domain => localDomain in LBFactory for consistency Change-Id: I2fb66f98dddb4acc38958a7b8beec002970d43f7 --- includes/db/loadbalancer/LBFactoryMW.php | 2 +- includes/libs/rdbms/lbfactory/LBFactory.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/db/loadbalancer/LBFactoryMW.php b/includes/db/loadbalancer/LBFactoryMW.php index 33c48a5384..2fb48c7f9e 100644 --- a/includes/db/loadbalancer/LBFactoryMW.php +++ b/includes/db/loadbalancer/LBFactoryMW.php @@ -40,7 +40,7 @@ abstract class LBFactoryMW extends LBFactory implements DestructibleService { global $wgCommandLineMode; $defaults = [ - 'domain' => wfWikiID(), + 'localDomain' => wfWikiID(), 'hostname' => wfHostname(), 'trxProfiler' => Profiler::instance()->getTransactionProfiler(), 'replLogger' => LoggerFactory::getInstance( 'DBReplication' ), diff --git a/includes/libs/rdbms/lbfactory/LBFactory.php b/includes/libs/rdbms/lbfactory/LBFactory.php index 107a7e2ddf..b6f331701c 100644 --- a/includes/libs/rdbms/lbfactory/LBFactory.php +++ b/includes/libs/rdbms/lbfactory/LBFactory.php @@ -50,7 +50,7 @@ abstract class LBFactory { protected $wanCache; /** @var string Local domain */ - protected $domain; + protected $localDomain; /** @var string Local hostname of the app server */ protected $hostname; /** @var mixed */ @@ -79,7 +79,7 @@ abstract class LBFactory { * @param array $conf */ public function __construct( array $conf ) { - $this->domain = isset( $conf['domain'] ) ? $conf['domain'] : ''; + $this->localDomain = isset( $conf['localDomain'] ) ? $conf['localDomain'] : ''; if ( isset( $conf['readOnlyReason'] ) && is_string( $conf['readOnlyReason'] ) ) { $this->readOnlyReason = $conf['readOnlyReason']; @@ -608,7 +608,7 @@ abstract class LBFactory { */ final protected function baseLoadBalancerParams() { return [ - 'localDomain' => $this->domain, + 'localDomain' => $this->localDomain, 'readOnlyReason' => $this->readOnlyReason, 'srvCache' => $this->srvCache, 'wanCache' => $this->wanCache, @@ -641,7 +641,7 @@ abstract class LBFactory { * @since 1.28 */ public function setDomainPrefix( $domain ) { - $this->domain = $domain; + $this->localDomain = $domain; } /** -- 2.20.1