aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache/scanner.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-01-07 18:13:35 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-15 15:36:52 +0100
commitddbbe1742fda9b508da5c6369dc2a2d5e19cec95 (patch)
treeb69d7c4e73212e7d08cbf40dd8f66d3b85e537c0 /lib/private/files/cache/scanner.php
parentfcec704174a384f93214a1f2b83bed385e763ff6 (diff)
downloadnextcloud-server-ddbbe1742fda9b508da5c6369dc2a2d5e19cec95.tar.gz
nextcloud-server-ddbbe1742fda9b508da5c6369dc2a2d5e19cec95.zip
propagate folder size in the same query for write updates
Diffstat (limited to 'lib/private/files/cache/scanner.php')
-rw-r--r--lib/private/files/cache/scanner.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php
index 1c50978a2e5..60daa323b4b 100644
--- a/lib/private/files/cache/scanner.php
+++ b/lib/private/files/cache/scanner.php
@@ -198,6 +198,7 @@ class Scanner extends BasicEmitter implements IScanner {
if (!empty($newData)) {
$data['fileid'] = $this->addToCache($file, $newData, $fileId);
}
+ $data['oldSize'] = $cacheData['size'];
// post-emit only if it was a file. By that we avoid counting/treating folders as files
if ($data['mimetype'] !== 'httpd/unix-directory') {