mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #31834 from nextcloud/backport/31816/stable22
[stable22] Deduplicate storage ids in list before reusing
This commit is contained in:
commit
84cf872bb9
1 changed files with 1 additions and 0 deletions
|
|
@ -237,6 +237,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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue