summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-08 15:27:36 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-12 17:28:09 +0200
commit520a74187639bbe73bbc4336f349586c8e19e06e (patch)
treeab3ea45415c8107e8c224c17c20b7f06089bbbeb
parentac9f998abdceb21fbbda4e8dee0e8b16c2f5ec4e (diff)
downloadnextcloud-server-520a74187639bbe73bbc4336f349586c8e19e06e.tar.gz
nextcloud-server-520a74187639bbe73bbc4336f349586c8e19e06e.zip
clear memcache keys in locking
-rw-r--r--lib/private/lock/memcachelockingprovider.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/lock/memcachelockingprovider.php b/lib/private/lock/memcachelockingprovider.php
index 3f32ab1d8c5..85b62c8340f 100644
--- a/lib/private/lock/memcachelockingprovider.php
+++ b/lib/private/lock/memcachelockingprovider.php
@@ -91,9 +91,10 @@ class MemcacheLockingProvider implements ILockingProvider {
if (isset($this->acquiredLocks['shared'][$path]) and $this->acquiredLocks['shared'][$path] > 0) {
$this->memcache->dec($path);
$this->acquiredLocks['shared'][$path]--;
+ $this->memcache->cad($path, 0);
}
} else if ($type === self::LOCK_EXCLUSIVE) {
- $this->memcache->cas($path, 'exclusive', 0);
+ $this->memcache->cad($path, 'exclusive');
unset($this->acquiredLocks['exclusive'][$path]);
}
}