Browse Source
Merge pull request #31816 from nextcloud/bugfix/noid/deduplicate-storage-id-before-reusing
Deduplicate storage ids in list before reusing
pull/31841/head
Joas Schilling
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
lib/private/Files/Cache/Storage.php
|
|
|
@ -230,6 +230,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') |
|
|
|
|