aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-06-17 12:07:03 +0200
committerRobin Appelman <robin@icewind.nl>2022-08-03 15:17:55 +0200
commit6ba9a4a752d6c88d96022caa753af82de6bd6249 (patch)
tree94e7ff13ed6f0dc4e059b2990539c0c3a842b215 /apps/files_sharing/lib
parentfa48430feb911adfb9ae7637fc53e87770441933 (diff)
downloadnextcloud-server-6ba9a4a752d6c88d96022caa753af82de6bd6249.tar.gz
nextcloud-server-6ba9a4a752d6c88d96022caa753af82de6bd6249.zip
Disable locking on federated shares
The old inneficiant code didn't do locking and adding locking is creating issues Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/External/Scanner.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/External/Scanner.php b/apps/files_sharing/lib/External/Scanner.php
index 009e206b959..f4084ac69ab 100644
--- a/apps/files_sharing/lib/External/Scanner.php
+++ b/apps/files_sharing/lib/External/Scanner.php
@@ -34,6 +34,11 @@ class Scanner extends \OC\Files\Cache\Scanner {
/** @var \OCA\Files_Sharing\External\Storage */
protected $storage;
+ public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $lock = true) {
+ // Disable locking for federated shares
+ parent::scan($path, $recursive, $reuse, false);
+ }
+
/**
* Scan a single file and store it in the cache.
* If an exception happened while accessing the external storage,