dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10da99d
)
Avoid warnings for empty file sha1 keys
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 24 Jun 2014 18:17:48 +0000
(11:17 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 24 Jun 2014 18:17:48 +0000
(11:17 -0700)
bug: 40362
Change-Id: I19d3b38a121171153875cde8bef4ca34b3e49d67
maintenance/deleteArchivedFiles.inc
patch
|
blob
|
history
diff --git
a/maintenance/deleteArchivedFiles.inc
b/maintenance/deleteArchivedFiles.inc
index
33da666
..
0c0b34a
100644
(file)
--- a/
maintenance/deleteArchivedFiles.inc
+++ b/
maintenance/deleteArchivedFiles.inc
@@
-39,6
+39,10
@@
class DeleteArchivedFilesImplementation {
$count = 0;
foreach ( $res as $row ) {
$key = $row->fa_storage_key;
+ if ( !strlen( $key ) ) {
+ $output->handleOutput( "Entry with ID {$row->fa_id} has empty key, skipping\n" );
+ continue;
+ }
$group = $row->fa_storage_group;
$id = $row->fa_id;
$path = $repo->getZonePath( 'deleted' ) . '/' . $repo->getDeletedHashPath( $key ) . $key;