diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-06 14:00:51 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-06 22:19:21 +0200 |
commit | 4fdd38c7378415c552859dc4c0d2dda709f699ec (patch) | |
tree | a293f861878f66e5395b54fa03cefe11ece5d557 /lib | |
parent | 159f28cd521e94eff23e32b5bf3f4d2447da403f (diff) | |
download | nextcloud-server-4fdd38c7378415c552859dc4c0d2dda709f699ec.tar.gz nextcloud-server-4fdd38c7378415c552859dc4c0d2dda709f699ec.zip |
Use fixed preview buckets that are postfixed with -preview-NUMBER
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php b/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php index 9ab0327684b..dba1dfc28e5 100644 --- a/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php +++ b/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php @@ -108,8 +108,8 @@ class ObjectStorePreviewCacheMountProvider implements IRootMountProvider { if (!isset($config['arguments']['bucket'])) { $config['arguments']['bucket'] = ''; } - $numBuckets = isset($config['arguments']['num_buckets']) ? $config['arguments']['num_buckets'] : 64; - $config['arguments']['bucket'] .= (string)($number % $numBuckets); + + $config['arguments']['bucket'] .= "-preview-$number"; // instantiate object store implementation $config['arguments']['objectstore'] = new $config['class']($config['arguments']); |