X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fsql.php;h=21d8b2dd45c695e1878368060b555031ae48684a;hb=4d10bb14e81aadb907a00e4bd13973ef668ab1f8;hp=3b0607f5fcbc8f1fed878d34d9f0f1e40e19f636;hpb=e1b3c3d96b6051c768f6ad4bcd287a1b8ab2864e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sql.php b/maintenance/sql.php index 3b0607f5fc..21d8b2dd45 100644 --- a/maintenance/sql.php +++ b/maintenance/sql.php @@ -83,8 +83,7 @@ class MwSql extends Maintenance { $index = DB_MASTER; } - /** @var IDatabase $db DB handle for the appropriate cluster/wiki */ - $db = $lb->getConnection( $index, [], $wiki ); + $db = $lb->getMaintenanceConnectionRef( $index, [], $wiki ); if ( $replicaDB != '' && $db->getLBInfo( 'master' ) !== null ) { $this->fatalError( "The server selected ({$db->getServer()}) is not a replica DB." ); }