X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupUploadStash.php;h=14c6a6b18a1f49f6e2a9340b699e92027308d84f;hb=99eb73c32ed9b9a7f7b92e71f09fcee197006b57;hp=95bbe3d3ffd8fc4a0f6c40af6fbcc9b9dc7bd7a2;hpb=b01d54e5981da34bf0ce6856e56d3841d71e8686;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index 95bbe3d3ff..14c6a6b18a 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -103,7 +103,7 @@ class UploadStashCleanup extends Maintenance { foreach ( $iterator as $file ) { if ( wfTimestamp( TS_UNIX, $tempRepo->getFileTimestamp( "$dir/$file" ) ) < $cutoff ) { $batch[] = [ 'op' => 'delete', 'src' => "$dir/$file" ]; - if ( count( $batch ) >= $this->mBatchSize ) { + if ( count( $batch ) >= $this->getBatchSize() ) { $this->doOperations( $tempRepo, $batch ); $i += count( $batch ); $batch = []; @@ -129,7 +129,7 @@ class UploadStashCleanup extends Maintenance { foreach ( $iterator as $file ) { if ( wfTimestamp( TS_UNIX, $tempRepo->getFileTimestamp( "$dir/$file" ) ) < $cutoff ) { $batch[] = [ 'op' => 'delete', 'src' => "$dir/$file" ]; - if ( count( $batch ) >= $this->mBatchSize ) { + if ( count( $batch ) >= $this->getBatchSize() ) { $this->doOperations( $tempRepo, $batch ); $i += count( $batch ); $batch = [];