X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateRevisionLength.php;h=8895c9f4f7724a47ad78bee59fbbc30528e7935e;hb=24ae4318b36f88f2dd43db5989074b65776e2cf8;hp=f83be9c793b8934e649d732bedbc4c2979e89f76;hpb=e69bcfad17d67da5113cdd75276a5f7b5cefb123;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateRevisionLength.php b/maintenance/populateRevisionLength.php index f83be9c793..8895c9f4f7 100644 --- a/maintenance/populateRevisionLength.php +++ b/maintenance/populateRevisionLength.php @@ -76,8 +76,8 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance { $dbr = $this->getDB( DB_REPLICA ); $dbw = $this->getDB( DB_MASTER ); $batchSize = $this->getBatchSize(); - $start = $dbw->selectField( $table, "MIN($idCol)", false, __METHOD__ ); - $end = $dbw->selectField( $table, "MAX($idCol)", false, __METHOD__ ); + $start = $dbw->selectField( $table, "MIN($idCol)", '', __METHOD__ ); + $end = $dbw->selectField( $table, "MAX($idCol)", '', __METHOD__ ); if ( !$start || !$end ) { $this->output( "...$table table seems to be empty.\n" ); @@ -117,7 +117,6 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance { $blockStart += $batchSize; $blockEnd += $batchSize; - wfWaitForSlaves(); } return $count;