summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-23 19:05:20 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-23 19:05:20 +0200
commitaa56d42fa8aafbed96eecfb898fa5c02340493a7 (patch)
treed781739ab498d3937d5675a90d64eb074cbc402d /lib
parent524479fa09851f25774bbc71d3ffb1661c01bcbe (diff)
parentf3979e5459fe4528a443e0f4eea1e1f5f7a00794 (diff)
downloadnextcloud-server-aa56d42fa8aafbed96eecfb898fa5c02340493a7.tar.gz
nextcloud-server-aa56d42fa8aafbed96eecfb898fa5c02340493a7.zip
Merge pull request #24777 from owncloud/scanner-dont-propagate
dont needlessly triger the propgator in the scanner
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Cache/Scanner.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Files/Cache/Scanner.php b/lib/private/Files/Cache/Scanner.php
index 06cc6426c59..cd592dbb1e6 100644
--- a/lib/private/Files/Cache/Scanner.php
+++ b/lib/private/Files/Cache/Scanner.php
@@ -302,7 +302,7 @@ class Scanner extends BasicEmitter implements IScanner {
}
$data = $this->scanFile($path, $reuse, -1, null, $lock);
if ($data and $data['mimetype'] === 'httpd/unix-directory') {
- $size = $this->scanChildren($path, $recursive, $reuse, $data, $lock);
+ $size = $this->scanChildren($path, $recursive, $reuse, $data['fileid'], $lock);
$data['size'] = $size;
}
if ($lock) {
@@ -378,7 +378,9 @@ class Scanner extends BasicEmitter implements IScanner {
$size += $childSize;
}
}
- $this->updateCache($path, array('size' => $size), $folderId);
+ if ($this->cacheActive) {
+ $this->cache->update($folderId, array('size' => $size));
+ }
$this->emit('\OC\Files\Cache\Scanner', 'postScanFolder', array($path, $this->storageId));
return $size;
}