diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-02-02 17:35:40 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-02-05 13:59:50 +0100 |
commit | adf9a4e4eb4f2eb4b4639d7241fd5a333eed248f (patch) | |
tree | 1cc1e8e18e538ee7f24dea5b6432b17cefb19edc /lib | |
parent | 842d0e227c601b3fe1c01c4ea613ebf17f2a634a (diff) | |
download | nextcloud-server-adf9a4e4eb4f2eb4b4639d7241fd5a333eed248f.tar.gz nextcloud-server-adf9a4e4eb4f2eb4b4639d7241fd5a333eed248f.zip |
Dont bother updating the cache when working with part files
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/updater.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php index 31a4a7c21e7..9f4cbfeff8c 100644 --- a/lib/private/files/cache/updater.php +++ b/lib/private/files/cache/updater.php @@ -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 |