X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Flbfactory%2FLBFactoryMulti.php;h=0384588ddca9dd376168145c50d453b64f842e0a;hp=447b96f951bc8724ae46b7a6558f467aa908e2d2;hb=6c9a2923fe1ee3a65cb027be5e781772f2b12fbd;hpb=bdfa96eb726c9997a010f5a194eec71925bfddc2 diff --git a/includes/libs/rdbms/lbfactory/LBFactoryMulti.php b/includes/libs/rdbms/lbfactory/LBFactoryMulti.php index 447b96f951..0384588ddc 100644 --- a/includes/libs/rdbms/lbfactory/LBFactoryMulti.php +++ b/includes/libs/rdbms/lbfactory/LBFactoryMulti.php @@ -23,7 +23,6 @@ namespace Wikimedia\Rdbms; -use IDatabase; use InvalidArgumentException; /** @@ -252,9 +251,7 @@ class LBFactoryMulti extends LBFactory { public function getMainLB( $domain = false ) { $section = $this->getSectionForDomain( $domain ); if ( !isset( $this->mainLBs[$section] ) ) { - $lb = $this->newMainLB( $domain ); - $this->getChronologyProtector()->initLB( $lb ); - $this->mainLBs[$section] = $lb; + $this->mainLBs[$section] = $this->newMainLB( $domain ); } return $this->mainLBs[$section]; @@ -283,7 +280,6 @@ class LBFactoryMulti extends LBFactory { public function getExternalLB( $cluster ) { if ( !isset( $this->extLBs[$cluster] ) ) { $this->extLBs[$cluster] = $this->newExternalLB( $cluster ); - $this->getChronologyProtector()->initLB( $this->extLBs[$cluster] ); } return $this->extLBs[$cluster];