X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22config_fonctions%22%2C%20%22image_process=%24process%22%29%20.%20%22?a=blobdiff_plain;f=maintenance%2Fsql.php;h=21d8b2dd45c695e1878368060b555031ae48684a;hb=b1b3cb8489b5a7e80dd6f75bb6050a0de9952ba7;hp=3b0607f5fcbc8f1fed878d34d9f0f1e40e19f636;hpb=204d0df4d2bb8139109253f3da1df42cd455850c;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." ); }