]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disable locking on federated shares
authorCarl Schwan <carl@carlschwan.eu>
Fri, 17 Jun 2022 10:07:03 +0000 (12:07 +0200)
committerRobin Appelman <robin@icewind.nl>
Wed, 3 Aug 2022 13:17:55 +0000 (15:17 +0200)
The old inneficiant code didn't do locking and adding locking is
creating issues

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
apps/files_sharing/lib/External/Scanner.php

index 009e206b959a58ae282a781273c23cc133b99c99..f4084ac69abf76229bf8f24a87e71c65a5cae054 100644 (file)
@@ -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,