Skip to content

Commit 961bf74

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
Deduplicate storage ids in list before reusing
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent d2a16ce commit 961bf74

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
@@ -237,6 +237,7 @@ public static function cleanByMountId(int $mountId) {
237237
->from('mounts')
238238
->where($query->expr()->eq('mount_id', $query->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
239239
$storageIds = $query->executeQuery()->fetchAll(\PDO::FETCH_COLUMN);
240+
$storageIds = array_unique($storageIds);
240241

241242
$query = $db->getQueryBuilder();
242243
$query->delete('filecache')

0 commit comments

Comments
 (0)