mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Deduplicate storage ids in list before reusing
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
0ab5daf9df
commit
4eff6b1c81
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