X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateRevisionSha1.php;h=9662044acc9636c892f3e3f3c48b82251c4880c3;hb=e9d42c0e7ea9390f650de8e350a4f64ff19787b0;hp=54937abc4afebb842a59d1bc63f8c95d26dba962;hpb=577f3d79115173f4dd16bb46f6d0ef2c82b55add;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateRevisionSha1.php b/maintenance/populateRevisionSha1.php index 54937abc4a..9662044acc 100644 --- a/maintenance/populateRevisionSha1.php +++ b/maintenance/populateRevisionSha1.php @@ -78,8 +78,8 @@ class PopulateRevisionSha1 extends LoggedUpdateMaintenance { protected function doSha1Updates( $table, $idCol, $queryInfo, $prefix ) { $db = $this->getDB( DB_MASTER ); $batchSize = $this->getBatchSize(); - $start = $db->selectField( $table, "MIN($idCol)", false, __METHOD__ ); - $end = $db->selectField( $table, "MAX($idCol)", false, __METHOD__ ); + $start = $db->selectField( $table, "MIN($idCol)", '', __METHOD__ ); + $end = $db->selectField( $table, "MAX($idCol)", '', __METHOD__ ); if ( !$start || !$end ) { $this->output( "...$table table seems to be empty.\n" ); @@ -109,7 +109,6 @@ class PopulateRevisionSha1 extends LoggedUpdateMaintenance { $blockStart += $batchSize; $blockEnd += $batchSize; - wfWaitForSlaves(); } return $count; @@ -135,7 +134,6 @@ class PopulateRevisionSha1 extends LoggedUpdateMaintenance { $updateSize = 0; $this->commitTransaction( $db, __METHOD__ ); $this->output( "Commited row with ar_timestamp={$row->ar_timestamp}\n" ); - wfWaitForSlaves(); $this->beginTransaction( $db, __METHOD__ ); } }