X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateFilearchiveSha1.php;h=cbd969db0675968f550c6d33405d601785d07097;hb=f1189284588d626e257bb8cfa43e7a8d60c0453f;hp=942f3f2b906c6c381eb71d32df7620db0572eb86;hpb=734ca2b4d2a1246fb0ea1e54b861ab423ab5e257;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateFilearchiveSha1.php b/maintenance/populateFilearchiveSha1.php index 942f3f2b90..cbd969db06 100644 --- a/maintenance/populateFilearchiveSha1.php +++ b/maintenance/populateFilearchiveSha1.php @@ -58,7 +58,7 @@ class PopulateFilearchiveSha1 extends LoggedUpdateMaintenance { $this->output( "Populating fa_sha1 field from fa_storage_key\n" ); $endId = $dbw->selectField( $table, 'MAX(fa_id)', false, __METHOD__ ); - $batchSize = $this->mBatchSize; + $batchSize = $this->getBatchSize(); $done = 0; do { @@ -91,7 +91,7 @@ class PopulateFilearchiveSha1 extends LoggedUpdateMaintenance { break; } - // print status and let slaves catch up + // print status and let replica DBs catch up $this->output( sprintf( "id %d done (up to %d), %5.3f%% \r", $lastId, $endId, $lastId / $endId * 100 ) ); wfWaitForSlaves();