X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdb%2FMWLBFactory.php;h=79f787dba4b73e26b5d7af782ab57cf9c02516e4;hp=82d9c1d564b52d66858084a7a2539a1a1111c79f;hb=478a58f63101f2b47d18a618296b5e7970fa3f24;hpb=a7e2b91b2c72f3522a7a9c3c957a43309e70b92e diff --git a/includes/db/MWLBFactory.php b/includes/db/MWLBFactory.php index 82d9c1d564..79f787dba4 100644 --- a/includes/db/MWLBFactory.php +++ b/includes/db/MWLBFactory.php @@ -208,10 +208,8 @@ abstract class MWLBFactory { return $class; } - public static function setSchemaAliases( LBFactory $lbFactory ) { - $mainLB = $lbFactory->getMainLB(); - $masterType = $mainLB->getServerType( $mainLB->getWriterIndex() ); - if ( $masterType === 'mysql' ) { + public static function setSchemaAliases( LBFactory $lbFactory, Config $config ) { + if ( $config->get( 'DBtype' ) === 'mysql' ) { /** * When SQLite indexes were introduced in r45764, it was noted that * SQLite requires index names to be unique within the whole database,