diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-05-09 12:41:46 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-05-09 12:41:46 +0200 |
commit | bd4d315d7840e916a395b90d389ea20aeb9f350b (patch) | |
tree | c18e9170d5d3c40e4a50adf360ae0a4599e2a4d1 | |
parent | 9919ec48df83b2f9d5b5b71318ead553d0e7567a (diff) | |
parent | 88225db4af499a7e13fc62ceb8cd9de461878202 (diff) | |
download | nextcloud-server-bd4d315d7840e916a395b90d389ea20aeb9f350b.tar.gz nextcloud-server-bd4d315d7840e916a395b90d389ea20aeb9f350b.zip |
Merge pull request #8512 from owncloud/fix-memcached-hasKey
Be more strict in checking the resultCode of memcached hasKey function
* owncloud/fix-memcached-hasKey:
Memcached hasKey should test for success, the get can fail for other reasons.
-rw-r--r-- | lib/private/memcache/memcached.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/memcache/memcached.php b/lib/private/memcache/memcached.php index 075828eebad..cd8e2e8d0b6 100644 --- a/lib/private/memcache/memcached.php +++ b/lib/private/memcache/memcached.php @@ -57,7 +57,7 @@ class Memcached extends Cache { public function hasKey($key) { self::$cache->get($this->getNamespace() . $key); - return self::$cache->getResultCode() !== \Memcached::RES_NOTFOUND; + return self::$cache->getResultCode() === \Memcached::RES_SUCCESS; } public function remove($key) { |