From 8ff733a3764ecb2017a14853556a7cf66fe546e5 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 23 Jul 2007 23:46:53 +0000 Subject: [PATCH] *Look only at unique keys. If a file has versions that have the same key, this can otherwise through errors trying to delete non-existent files during cleanup. --- includes/filerepo/LocalRepo.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/filerepo/LocalRepo.php b/includes/filerepo/LocalRepo.php index ae56aa901b..72f9e9a6c3 100644 --- a/includes/filerepo/LocalRepo.php +++ b/includes/filerepo/LocalRepo.php @@ -40,6 +40,7 @@ class LocalRepo extends FSRepo { $root = $this->getZonePath( 'deleted' ); $dbw = $this->getMasterDB(); $status = $this->newGood(); + $storageKeys = array_unique($storageKeys); foreach ( $storageKeys as $key ) { $hashPath = $this->getDeletedHashPath( $key ); $path = "$root/$hashPath$key"; -- 2.20.1