X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateFilearchiveSha1.php;h=cbd969db0675968f550c6d33405d601785d07097;hb=d3d8c3fa855e6231e34772bfe6cd7284813ddc92;hp=942f3f2b906c6c381eb71d32df7620db0572eb86;hpb=6e9b4f0e9ce4ccd6089c18b205065ef7fa077484;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();