aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-24 12:14:39 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-24 12:14:39 +0100
commit4124d909b64c908ac481321ff9032ef5f09cf7ba (patch)
tree1fbebf28f405576890c621027a7c275f477cf943
parentfbc5a44f777d16f4ac7cb2892f263703f1fc6612 (diff)
parent8c77fdef3eac77474ff83a8fc179d38696e19ce0 (diff)
downloadnextcloud-server-4124d909b64c908ac481321ff9032ef5f09cf7ba.tar.gz
nextcloud-server-4124d909b64c908ac481321ff9032ef5f09cf7ba.zip
Merge pull request #22565 from owncloud/avoid-scanning-root-storage
Avoids scanning the root storage
-rw-r--r--lib/private/files/utils/scanner.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php
index 59673a306cb..bc815f5f6da 100644
--- a/lib/private/files/utils/scanner.php
+++ b/lib/private/files/utils/scanner.php
@@ -119,6 +119,10 @@ class Scanner extends PublicEmitter {
if (is_null($mount->getStorage())) {
continue;
}
+ // don't scan the root storage
+ if ($mount->getStorage()->instanceOfStorage('\OC\Files\Storage\Local') && $mount->getMountPoint() === '/') {
+ continue;
+ }
$scanner = $mount->getStorage()->getScanner();
$this->attachListener($mount);
$scanner->backgroundScan();