dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Validate BlockID cookie before use"
[lhc/web/wiklou.git]
/
includes
/
installer
/
MysqlUpdater.php
diff --git
a/includes/installer/MysqlUpdater.php
b/includes/installer/MysqlUpdater.php
index
9be6c3d
..
7fa5a3d
100644
(file)
--- a/
includes/installer/MysqlUpdater.php
+++ b/
includes/installer/MysqlUpdater.php
@@
-20,6
+20,7
@@
* @file
* @ingroup Deployment
*/
* @file
* @ingroup Deployment
*/
+use MediaWiki\MediaWikiServices;
/**
* Mysql update list and mysql-specific update functions.
/**
* Mysql update list and mysql-specific update functions.
@@
-853,7
+854,8
@@
class MysqlUpdater extends DatabaseUpdater {
foreach ( $res as $row ) {
$count = ( $count + 1 ) % 100;
if ( $count == 0 ) {
foreach ( $res as $row ) {
$count = ( $count + 1 ) % 100;
if ( $count == 0 ) {
- wfGetLBFactory()->waitForReplication( [ 'wiki' => wfWikiID() ] );
+ $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
+ $lbFactory->waitForReplication( [ 'wiki' => wfWikiID() ] );
}
$this->db->insert( 'templatelinks',
[
}
$this->db->insert( 'templatelinks',
[