diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-06-01 14:10:00 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-06-01 14:10:00 +0200 |
commit | 2104c2ffdd4fb2f63c4150bd2ffd0ac35d5ea859 (patch) | |
tree | c3a0502fe4d9606154279adbb8fea16513dea7e4 /lib | |
parent | 8902e2be733242bf02cb13ba6b374cdb45aa9e2f (diff) | |
download | nextcloud-server-2104c2ffdd4fb2f63c4150bd2ffd0ac35d5ea859.tar.gz nextcloud-server-2104c2ffdd4fb2f63c4150bd2ffd0ac35d5ea859.zip |
Fixing undefined index 'foo'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/lock/memcachelockingprovider.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/lock/memcachelockingprovider.php b/lib/private/lock/memcachelockingprovider.php index 26957f8ceda..3f32ab1d8c5 100644 --- a/lib/private/lock/memcachelockingprovider.php +++ b/lib/private/lock/memcachelockingprovider.php @@ -111,6 +111,9 @@ class MemcacheLockingProvider implements ILockingProvider { throw new LockedException($path); } unset($this->acquiredLocks['exclusive'][$path]); + if (!isset($this->acquiredLocks['shared'][$path])) { + $this->acquiredLocks['shared'][$path] = 0; + } $this->acquiredLocks['shared'][$path]++; } else if ($targetType === self::LOCK_EXCLUSIVE) { // we can only change a shared lock to an exclusive if there's only a single owner of the shared lock |