]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dont bother updating the cache when working with part files
authorRobin Appelman <icewind@owncloud.com>
Mon, 2 Feb 2015 16:35:40 +0000 (17:35 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 5 Feb 2015 12:59:50 +0000 (13:59 +0100)
lib/private/files/cache/updater.php

index 31a4a7c21e7ceaf4291ff0544d755a48f0ad40c2..9f4cbfeff8c5dc79fb06dd17e04c2e4a70f25740 100644 (file)
@@ -31,6 +31,9 @@ class Updater {
        }
 
        public function propagate($path, $time = null) {
+               if (Scanner::isPartialFile($path)) {
+                       return;
+               }
                $this->propagator->addChange($path);
                $this->propagator->propagateChanges($time);
        }
@@ -42,6 +45,9 @@ class Updater {
         * @param int $time
         */
        public function update($path, $time = null) {
+               if(Scanner::isPartialFile($path)) {
+                       return;
+               }
                /**
                 * @var \OC\Files\Storage\Storage $storage
                 * @var string $internalPath
@@ -64,6 +70,9 @@ class Updater {
         * @param string $path
         */
        public function remove($path) {
+               if (Scanner::isPartialFile($path)) {
+                       return;
+               }
                /**
                 * @var \OC\Files\Storage\Storage $storage
                 * @var string $internalPath
@@ -88,6 +97,9 @@ class Updater {
         * @param string $target
         */
        public function rename($source, $target) {
+               if (Scanner::isPartialFile($source) or Scanner::isPartialFile($target)) {
+                       return;
+               }
                /**
                 * @var \OC\Files\Storage\Storage $sourceStorage
                 * @var \OC\Files\Storage\Storage $targetStorage