Skip to content

Commit

Permalink
Merge pull request #31835 from nextcloud/backport/31816/stable23
Browse files Browse the repository at this point in the history
[stable23] Deduplicate storage ids in list before reusing
  • Loading branch information
blizzz authored Apr 14, 2022
2 parents 04c8cf4 + 961bf74 commit eee279d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Files/Cache/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ public static function cleanByMountId(int $mountId) {
->from('mounts')
->where($query->expr()->eq('mount_id', $query->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
$storageIds = $query->executeQuery()->fetchAll(\PDO::FETCH_COLUMN);
$storageIds = array_unique($storageIds);

$query = $db->getQueryBuilder();
$query->delete('filecache')
Expand Down

0 comments on commit eee279d

Please sign in to comment.