summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-06 20:10:25 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-06 22:31:39 +0200
commit45428e49482b8c1916859fbe80564670fa51f8ff (patch)
tree4f30448487a473296866b83051a66de262571077 /lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php
parent4fdd38c7378415c552859dc4c0d2dda709f699ec (diff)
downloadnextcloud-server-45428e49482b8c1916859fbe80564670fa51f8ff.tar.gz
nextcloud-server-45428e49482b8c1916859fbe80564670fa51f8ff.zip
Add config option to enable multibucket preview distribution
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php')
-rw-r--r--lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php b/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php
index dba1dfc28e5..9bbb744bbcc 100644
--- a/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php
+++ b/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php
@@ -55,6 +55,9 @@ class ObjectStorePreviewCacheMountProvider implements IRootMountProvider {
if (!is_array($this->config->getSystemValue('objectstore_multibucket'))) {
return [];
}
+ if ($this->config->getSystemValue('objectstore.multibucket.preview-distribution', false) !== true) {
+ return [];
+ }
$instanceId = $this->config->getSystemValueString('instanceid', '');
$mountPoints = [];