Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-06-17 13:07:03 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-08-04 10:44:55 +0300
commitc0a18cbb87803befece881e7cbbaf23a8d2aba3c (patch)
tree14f56d17de4980c042d0b5a083edfc63e4fd9faa /apps
parent5ac96a4b012114d07a06770c00e3aaa819d14a8c (diff)
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')
-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,