[Pkg-owncloud-commits] [owncloud] 101/134: Do not expire chunks while checking for their existence

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 21:44:06 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit d34e1b524a46de27d15ad59e47266e6903a7a7be
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Thu Apr 3 21:12:35 2014 +0200

    Do not expire chunks while checking for their existence
    
    The expiration should be done by the gc() function on login, not while
    isComplete() is calling hasKey() for every chunk.
    
    Backport of ab56f694160f58f075069560953cba86cdfe5aec from master
---
 lib/private/cache/file.php | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/private/cache/file.php b/lib/private/cache/file.php
index b0738d2..82b2a36 100644
--- a/lib/private/cache/file.php
+++ b/lib/private/cache/file.php
@@ -77,11 +77,6 @@ class File {
 	public function hasKey($key) {
 		$storage = $this->getStorage();
 		if ($storage && $storage->is_file($key)) {
-			$mtime = $storage->filemtime($key);
-			if ($mtime < time()) {
-				$storage->unlink($key);
-				return false;
-			}
 			return true;
 		}
 		return false;

-- 
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