The script already has waitForReplication(), that's good for non-WMF setups
Bug: T206568
Change-Id: I020a4472796eeff2561da6c17a817091d4e9af5a
$this->setBatchSize( 1000 );
$this->addOption(
'sleep',
$this->setBatchSize( 1000 );
$this->addOption(
'sleep',
- 'Sleep time (in seconds) between every batch',
+ 'Sleep time (in seconds) between every batch, defaults to zero',
private function backpopulateChangeTagPerTag( $tagName, $tagId ) {
$dbr = $this->lbFactory->getMainLB()->getConnection( DB_REPLICA );
$dbw = $this->lbFactory->getMainLB()->getConnection( DB_MASTER );
private function backpopulateChangeTagPerTag( $tagName, $tagId ) {
$dbr = $this->lbFactory->getMainLB()->getConnection( DB_REPLICA );
$dbw = $this->lbFactory->getMainLB()->getConnection( DB_MASTER );
- $sleep = (int)$this->getOption( 'sleep', 10 );
+ $sleep = (int)$this->getOption( 'sleep', 0 );
$lastId = 0;
$this->output( "Starting to add ct_tag_id = {$tagId} for ct_tag = {$tagName}\n" );
while ( true ) {
$lastId = 0;
$this->output( "Starting to add ct_tag_id = {$tagId} for ct_tag = {$tagName}\n" );
while ( true ) {