Fix finding mount in background watcher, fixes #3353

This commit is contained in:
Michael Gapczynski 2013-05-15 09:33:38 -04:00
parent de2ccf4723
commit d91161186b
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class BackgroundWatcher {
return;
}
list($storageId, $internalPath) = $cacheItem;
$mounts = Mount::findByStorageId($storageId);
$mounts = Filesystem::getMountByStorageId($storageId);
if (count($mounts) === 0) {
//if the storage we need isn't mounted on default, try to find a user that has access to the storage
@ -40,7 +40,7 @@ class BackgroundWatcher {
return;
}
Filesystem::initMountPoints($users[0]);
$mounts = Mount::findByStorageId($storageId);
$mounts = Filesystem::getMountByStorageId($storageId);
if (count($mounts) === 0) {
return;
}