Commit 1adc9830 authored by Vincent Petry's avatar Vincent Petry Committed by GitHub
Browse files

Merge pull request #26529 from owncloud/bkgscan-failedstorage

Skip FailedStorage in background scan
parents 58d43f1e 26e0ce62
......@@ -121,6 +121,12 @@ class Scanner extends PublicEmitter {
if (is_null($storage)) {
continue;
}
// don't bother scanning failed storages (shortcut for same result)
if ($storage->instanceOfStorage('OC\Files\Storage\FailedStorage')) {
continue;
}
// don't scan the root storage
if ($storage->instanceOfStorage('\OC\Files\Storage\Local') && $mount->getMountPoint() === '/') {
continue;
......@@ -164,6 +170,12 @@ class Scanner extends PublicEmitter {
if (is_null($storage)) {
continue;
}
// don't bother scanning failed storages (shortcut for same result)
if ($storage->instanceOfStorage('OC\Files\Storage\FailedStorage')) {
continue;
}
// if the home storage isn't writable then the scanner is run as the wrong user
if ($storage->instanceOfStorage('\OC\Files\Storage\Home') and
(!$storage->isCreatable('') or !$storage->isCreatable('files'))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment