Browse Source
Deduplicate storage ids in list before reusing
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/31816/head
Joas Schilling
4 years ago
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with
1 additions and
0 deletions
-
lib/private/Files/Cache/Storage.php
|
|
|
@ -240,6 +240,7 @@ class Storage { |
|
|
|
->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') |
|
|
|
|