aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-02-06 18:16:23 +0100
committerRobin Appelman <robin@icewind.nl>2023-02-06 18:16:23 +0100
commit43589312ccbdf977bb6d89eae3bec28bde2dceff (patch)
treecf03a582a1695347bb55bceca7d41484cd133a96 /lib
parent87b53dfed3f68a5ddbc13e445c0c53d299374c5e (diff)
downloadnextcloud-server-43589312ccbdf977bb6d89eae3bec28bde2dceff.tar.gz
nextcloud-server-43589312ccbdf977bb6d89eae3bec28bde2dceff.zip
dont delegate Mount\Manager::getByNumericId to getByStorageId
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Mount/Manager.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/Files/Mount/Manager.php b/lib/private/Files/Mount/Manager.php
index 9ba0e504058..805cce658a6 100644
--- a/lib/private/Files/Mount/Manager.php
+++ b/lib/private/Files/Mount/Manager.php
@@ -184,8 +184,13 @@ class Manager implements IMountManager {
* @return IMountPoint[]
*/
public function findByNumericId(int $id): array {
- $storageId = \OC\Files\Cache\Storage::getStorageId($id);
- return $this->findByStorageId($storageId);
+ $result = [];
+ foreach ($this->mounts as $mount) {
+ if ($mount->getNumericStorageId() === $id) {
+ $result[] = $mount;
+ }
+ }
+ return $result;
}
/**