jenkins-bot has submitted this change and it was merged.
Change subject: Speed up thumbnail purging a bit for stash script
......................................................................
Speed up thumbnail purging a bit for stash script
Change-Id: Ie0f3d5aa505a5c1554d7932d38ba376811590df1
(cherry picked from commit c674d4c90c40d18187d893ed7a7ea94f43a1a624)
---
M maintenance/cleanupUploadStash.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Aaron Schulz: Looks good to me, approved
jenkins-bot: Verified
diff --git a/maintenance/cleanupUploadStash.php
b/maintenance/cleanupUploadStash.php
index bc43c67..2300694 100644
--- a/maintenance/cleanupUploadStash.php
+++ b/maintenance/cleanupUploadStash.php
@@ -94,7 +94,7 @@
// Delete all the corresponding thumbnails...
$dir = $tempRepo->getZonePath( 'thumb' );
- $iterator = $tempRepo->getBackend()->getFileList( array( 'dir'
=> $dir ) );
+ $iterator = $tempRepo->getBackend()->getFileList( array( 'dir'
=> $dir, 'adviseStat' => 1 ) );
$this->output( "Deleting old thumbnails...\n" );
$i = 0;
foreach ( $iterator as $file ) {
--
To view, visit https://gerrit.wikimedia.org/r/94455
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie0f3d5aa505a5c1554d7932d38ba376811590df1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.23wmf3
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits