s/slave/replica/

Bug: T254646
Change-Id: I4de3985fd8568ce07919623efe2981bc0b6c54e5
This commit is contained in:
Reedy 2020-06-09 02:09:44 +01:00
parent 9564e1ae50
commit aa702c1471
6 changed files with 9 additions and 9 deletions

View file

@ -133,9 +133,9 @@ class MWEchoDbFactory {
}
/**
* Wait for the slaves of the database
* Wait for the replicas of the database
*/
public function waitForSlaves() {
public function waitForReplicas() {
$this->waitFor( $this->getMasterPosition() );
}
@ -167,7 +167,7 @@ class MWEchoDbFactory {
/**
* Receives the output of self::getMasterPosition. Waits
* for slaves to catch up to the master position at that
* for replicas to catch up to the master position at that
* point.
*
* @param array $position

View file

@ -68,7 +68,7 @@ class BackfillUnreadWikis extends Maintenance {
$processed += count( $batch );
$this->output( "Updated $processed users.\n" );
$dbFactory->waitForSlaves();
$dbFactory->waitForReplicas();
}
}
}

View file

@ -57,7 +57,7 @@ class ProcessEchoEmailBatch extends Maintenance {
}
$count++;
}
$lbFactory->waitForSlaves();
$lbFactory->waitForReplicas();
// double check to make sure that the id is updated
if ( !$updated ) {

View file

@ -78,7 +78,7 @@ class RecomputeNotifCounts extends Maintenance {
}
$count += count( $batch );
$this->output( "$count users' counts recomputed.\n" );
$dbFactory->waitForSlaves();
$dbFactory->waitForReplicas();
}
}
}

View file

@ -76,7 +76,7 @@ class RemoveInvalidNotification extends Maintenance {
$this->commitTransaction( $dbw, __METHOD__ );
$this->output( "processing " . count( $event ) . " invalid events\n" );
$lbFactory->waitForSlaves();
$lbFactory->waitForReplicas();
}
// Cleanup is not necessary for

View file

@ -63,7 +63,7 @@ class RemoveOrphanedEvents extends LoggedUpdateMaintenance {
$dbw->delete( 'echo_target_page', [ 'etp_event' => $ids ], __METHOD__ );
$targetsProcessed += $dbw->affectedRows();
$this->output( "Deleted $eventsProcessed orphaned events and $targetsProcessed target_page rows.\n" );
$dbFactory->waitForSlaves();
$dbFactory->waitForReplicas();
}
$this->output( "Removing any remaining orphaned echo_target_page rows...\n" );
@ -86,7 +86,7 @@ class RemoveOrphanedEvents extends LoggedUpdateMaintenance {
$dbw->delete( 'echo_target_page', [ 'etp_event' => $ids ], __METHOD__ );
$processed += $dbw->affectedRows();
$this->output( "Deleted $processed orphaned target_page rows.\n" );
$dbFactory->waitForSlaves();
$dbFactory->waitForReplicas();
}
return true;