Merge pull request #59900 from nextcloud/cached-mounts-no-storageid

perf: remove needless check for changed storage id for mounts
pull/61889/head
Stephan Orbaugh 1 month ago committed by GitHub
commit 50d6a968a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      lib/private/Files/Config/UserMountCache.php

@ -156,12 +156,12 @@ class UserMountCache implements IUserMountCache {
private function findChangedMounts(array $newMounts, array $cachedMounts): array {
$changed = [];
foreach ($cachedMounts as $key => $cachedMount) {
// $key = "$rootId::$mountPoint"
if (isset($newMounts[$key])) {
$newMount = $newMounts[$key];
if (
$newMount->getMountId() !== $cachedMount->getMountId()
|| $newMount->getMountProvider() !== $cachedMount->getMountProvider()
|| $newMount->getStorageId() !== $cachedMount->getStorageId()
) {
$changed[] = [$cachedMount, $newMount];
}

Loading…
Cancel
Save