nextcloud/lib/private/Files
Ashod Nakashian a66fb45c0b Unlock when promoting to exclusive lock fails
In certain cases changeLock to EXCLUSIVE fails
and throws LockedException. This leaves the
file locked as SHARED in file_put_contents,
which prevents retrying (because on second
call file_put_contents takes another SHARED
lock on the same file, and changeLock doesn't
allow more than a single SHARED lock to promote
to EXCLUSIVE).

To avoid this case, we catch the LockedException
and unlock before re-throwing.

Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-07 10:31:26 -05:00
..
AppData Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Cache The file cache entry is array accessible 2020-10-13 10:47:00 +02:00
Config Remove @suppress SqlInjectionChecker 2020-09-16 15:53:56 +02:00
Mount set the mount id before calling storage wrapper 2020-08-31 16:38:47 +02:00
Node Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Notify Update license headers 2019-12-05 15:38:45 +01:00
ObjectStore Allow config to specify the bucket exists 2020-11-06 11:08:38 +01:00
Search Use exactly one empty line after the namespace declaration 2020-04-09 11:48:10 +02:00
SimpleFS Update license headers for 19 2020-04-29 11:57:22 +02:00
Storage Improve CertificateManager to not be user context dependent 2020-11-03 00:13:01 +01:00
Stream Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Type Properly add both mimetypes to secure mimetype mapping 2020-09-07 16:42:11 +02:00
Utils Add visibility to all constants 2020-04-10 16:54:27 +02:00
FileInfo.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Filesystem.php Merge pull request #22520 from nextcloud/normalize-path-invalid-utf8 2020-09-09 21:52:36 +02:00
View.php Unlock when promoting to exclusive lock fails 2020-11-07 10:31:26 -05:00