diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-04-04 20:00:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 20:00:22 +0300 |
commit | a44671d3968a889f23b74194341dd7688b9ff5a3 (patch) | |
tree | 4eedb9ac601b38df4abffea0cb850f15679b0e2b | |
parent | cc5e26bb149b85cc0cf01092623bd74c6dacbca2 (diff) | |
parent | d3b9d49c22cbf5e12ab803e66e03ce6decb8454b (diff) |
Merge pull request #31816 from nextcloud/bugfix/noid/deduplicate-storage-id-before-reusing
Deduplicate storage ids in list before reusing
-rw-r--r-- | lib/private/Files/Cache/Storage.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/Storage.php b/lib/private/Files/Cache/Storage.php index e977e29ce7d..fb9e5500658 100644 --- a/lib/private/Files/Cache/Storage.php +++ b/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') |