Skip to content

Commit 4679c6d

Browse files
committed
perf: remove needless check for changed storage id for mounts
since we already know they have the same root_id, the storage_id must also be the same Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent dfa407c commit 4679c6d

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
@@ -149,12 +149,12 @@ public function registerMounts(IUser $user, array $mounts, ?array $mountProvider
149149
private function findChangedMounts(array $newMounts, array $cachedMounts): array {
150150
$changed = [];
151151
foreach ($cachedMounts as $key => $cachedMount) {
152+
// $key = "$rootId::$mountPoint"
152153
if (isset($newMounts[$key])) {
153154
$newMount = $newMounts[$key];
154155
if (
155156
$newMount->getMountId() !== $cachedMount->getMountId()
156157
|| $newMount->getMountProvider() !== $cachedMount->getMountProvider()
157-
|| $newMount->getStorageId() !== $cachedMount->getStorageId()
158158
) {
159159
$changed[] = [$cachedMount, $newMount];
160160
}

0 commit comments

Comments
 (0)