[Pkg-owncloud-commits] [owncloud] 32/205: dont update the cache on rename fail

David Prévot taffit at moszumanska.debian.org
Thu Jul 2 17:36:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit d7960d5db644b574fb7255b94f139c2c035b1a68
Author: Robin Appelman <icewind at owncloud.com>
Date:   Thu Jun 18 14:45:13 2015 +0200

    dont update the cache on rename fail
---
 lib/private/files/view.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 20bba09..2297221 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -683,7 +683,7 @@ class View {
 				if ((Cache\Scanner::isPartialFile($path1) && !Cache\Scanner::isPartialFile($path2)) && $result !== false) {
 					// if it was a rename from a part file to a regular file it was a write and not a rename operation
 					$this->updater->update($path2);
-				} else {
+				} else if ($result) {
 					if ($internalPath1 !== '') { // dont do a cache update for moved mounts
 						$this->updater->rename($path1, $path2);
 					} else { // only do etag propagation

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list