diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-06-17 12:07:03 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-08-03 15:17:55 +0200 |
commit | 6ba9a4a752d6c88d96022caa753af82de6bd6249 (patch) | |
tree | 94e7ff13ed6f0dc4e059b2990539c0c3a842b215 /apps/files_sharing/lib | |
parent | fa48430feb911adfb9ae7637fc53e87770441933 (diff) | |
download | nextcloud-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.php | 5 |
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, |