summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
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 /apps/files_sharing
parentfcec704174a384f93214a1f2b83bed385e763ff6 (diff)
downloadnextcloud-server-ddbbe1742fda9b508da5c6369dc2a2d5e19cec95.tar.gz
nextcloud-server-ddbbe1742fda9b508da5c6369dc2a2d5e19cec95.zip
propagate folder size in the same query for write updates
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/sharedpropagator.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/sharedpropagator.php b/apps/files_sharing/lib/sharedpropagator.php
index fd3e14b28f8..29735934499 100644
--- a/apps/files_sharing/lib/sharedpropagator.php
+++ b/apps/files_sharing/lib/sharedpropagator.php
@@ -32,12 +32,13 @@ class SharedPropagator extends Propagator {
/**
* @param string $internalPath
* @param int $time
- * @return array[] all propagated entries
+ * @param int $sizeDifference
+ * @return \array[] all propagated entries
*/
- public function propagateChange($internalPath, $time) {
+ public function propagateChange($internalPath, $time, $sizeDifference = 0) {
$source = $this->storage->getSourcePath($internalPath);
/** @var \OC\Files\Storage\Storage $storage */
list($storage, $sourceInternalPath) = \OC\Files\Filesystem::resolvePath($source);
- return $storage->getPropagator()->propagateChange($sourceInternalPath, $time);
+ return $storage->getPropagator()->propagateChange($sourceInternalPath, $time, $sizeDifference);
}
}