aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/common.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-11-25 13:53:31 +0100
committerRobin Appelman <icewind@owncloud.com>2015-11-25 14:16:00 +0100
commitb025f07fb7090acfe9d168974b4ce2e66f973e30 (patch)
treeb6fd66ae1914ead55e046d34c55ea0569587107c /lib/private/files/storage/common.php
parent50f6817ce99f3870e1e8dea92eaa35a0c40553ba (diff)
downloadnextcloud-server-b025f07fb7090acfe9d168974b4ce2e66f973e30.tar.gz
nextcloud-server-b025f07fb7090acfe9d168974b4ce2e66f973e30.zip
Make Cache\Updater per storage
Diffstat (limited to 'lib/private/files/storage/common.php')
-rw-r--r--lib/private/files/storage/common.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index 3772b442b59..0cd67e343ff 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -39,6 +39,7 @@ namespace OC\Files\Storage;
use OC\Files\Cache\Cache;
use OC\Files\Cache\Propagator;
use OC\Files\Cache\Scanner;
+use OC\Files\Cache\Updater;
use OC\Files\Filesystem;
use OC\Files\Cache\Watcher;
use OCP\Files\FileNameTooLongException;
@@ -67,6 +68,7 @@ abstract class Common implements Storage {
protected $watcher;
protected $propagator;
protected $storageCache;
+ protected $updater;
protected $mountOptions = [];
@@ -363,6 +365,16 @@ abstract class Common implements Storage {
return $this->propagator;
}
+ public function getUpdater($storage = null) {
+ if (!$storage) {
+ $storage = $this;
+ }
+ if (!isset($this->updater)) {
+ $this->updater = new Updater($storage);
+ }
+ return $this->updater;
+ }
+
public function getStorageCache($storage = null) {
if (!$storage) {
$storage = $this;