[Pkg-owncloud-commits] [owncloud] 209/457: Add CAS methods to Null memcache

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:06:08 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 5edf294ce597c59c204c37e9fb753807ab40082f
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Wed May 13 11:03:38 2015 +0200

    Add CAS methods to Null memcache
    
    This prevents breaking ownCloud completely when memcache is not enabled
    and the locking code is triggered
---
 lib/private/memcache/null.php | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/lib/private/memcache/null.php b/lib/private/memcache/null.php
index 3b8ce0b..c9b07f4 100644
--- a/lib/private/memcache/null.php
+++ b/lib/private/memcache/null.php
@@ -39,6 +39,18 @@ class Null extends Cache {
 		return true;
 	}
 
+	public function inc($key) {
+		return true;
+	}
+
+	public function dec($key) {
+		return true;
+	}
+
+	public function cas($key, $old, $new) {
+		return true;
+	}
+
 	public function clear($prefix = '') {
 		return true;
 	}

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