Skip to content

Commit 50d6a96

Browse files
authored
Merge pull request #59900 from nextcloud/cached-mounts-no-storageid
perf: remove needless check for changed storage id for mounts
2 parents 4f43312 + 4679c6d commit 50d6a96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Config/UserMountCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ public function registerMounts(IUser $user, array $mounts, ?array $mountProvider
156156
private function findChangedMounts(array $newMounts, array $cachedMounts): array {
157157
$changed = [];
158158
foreach ($cachedMounts as $key => $cachedMount) {
159+
// $key = "$rootId::$mountPoint"
159160
if (isset($newMounts[$key])) {
160161
$newMount = $newMounts[$key];
161162
if (
162163
$newMount->getMountId() !== $cachedMount->getMountId()
163164
|| $newMount->getMountProvider() !== $cachedMount->getMountProvider()
164-
|| $newMount->getStorageId() !== $cachedMount->getStorageId()
165165
) {
166166
$changed[] = [$cachedMount, $newMount];
167167
}

0 commit comments

Comments
 (0)