Thiemo Mättig (WMDE) has uploaded a new change for review.
https://gerrit.wikimedia.org/r/278919
Change subject: Replace deprecated wfWaitForSlaves
......................................................................
Replace deprecated wfWaitForSlaves
Change-Id: I7fc5b0c50d4221a3f0486ba8b33694bf84dda7a1
---
M includes/ConstraintRepository.php
M maintenance/UpdateConstraintsTable.php
2 files changed, 2 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints
refs/changes/19/278919/1
diff --git a/includes/ConstraintRepository.php
b/includes/ConstraintRepository.php
index ee9079a..5078b4d 100644
--- a/includes/ConstraintRepository.php
+++ b/includes/ConstraintRepository.php
@@ -72,7 +72,7 @@
} else {
do {
$db->commit( __METHOD__, 'flush' );
- wfWaitForSlaves();
+ wfGetLBFactory()->waitForReplication();
$table = $db->tableName( CONSTRAINT_TABLE );
$db->query( sprintf('DELETE FROM %s LIMIT %s',
$table, $batchSize ) );
} while ( $db->affectedRows() > 0 );
diff --git a/maintenance/UpdateConstraintsTable.php
b/maintenance/UpdateConstraintsTable.php
index 73f6fef..296bf41 100644
--- a/maintenance/UpdateConstraintsTable.php
+++ b/maintenance/UpdateConstraintsTable.php
@@ -61,7 +61,7 @@
$constraintRepo->insertBatch( $accumulator );
$db->commit( __METHOD__, 'flush' );
- wfWaitForSlaves();
+ wfGetLBFactory()->waitForReplication();
if ( !$this->isQuiet() ) {
$this->output( "\r\033[K" );
--
To view, visit https://gerrit.wikimedia.org/r/278919
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7fc5b0c50d4221a3f0486ba8b33694bf84dda7a1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits