Skip to content

Commit eee279d

Browse files
authored
Merge pull request #31835 from nextcloud/backport/31816/stable23
[stable23] Deduplicate storage ids in list before reusing
2 parents 04c8cf4 + 961bf74 commit eee279d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/Files/Cache/Storage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ public static function cleanByMountId(int $mountId) {
240240
->from('mounts')
241241
->where($query->expr()->eq('mount_id', $query->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
242242
$storageIds = $query->executeQuery()->fetchAll(\PDO::FETCH_COLUMN);
243+
$storageIds = array_unique($storageIds);
243244

244245
$query = $db->getQueryBuilder();
245246
$query->delete('filecache')

0 commit comments

Comments
 (0)