nextcloud/lib/private/Files
Ashod Nakashian da7f445179 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-12 19:07:35 +00:00
..
AppData Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Cache dont update mimetype when moving to trash 2020-07-31 17:21:02 +02:00
Config Transfer shares of the transferred root node 2020-09-17 19:03:07 +02:00
Mount set the mount id before calling storage wrapper 2020-08-31 15:23:13 +00:00
Node Update license headers for 19 2020-04-29 11:57:22 +02:00
Notify Update license headers 2019-12-05 15:38:45 +01:00
ObjectStore Fix reading empty files from objectstorage 2020-09-09 19:47:23 +00: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 Make sure root storage is valid before checking its size 2020-11-09 10:08:17 +00:00
Stream Update license headers for 19 2020-04-29 11:57:22 +02:00
Type Properly add both mimetypes to secure mimetype mapping 2020-09-09 12:17:26 +00:00
Utils Add visibility to all constants 2020-04-10 16:54:27 +02:00
FileInfo.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Filesystem.php fix: file quota was not applied in all cases 2020-09-17 07:13:18 +00:00
View.php Unlock when promoting to exclusive lock fails 2020-11-12 19:07:35 +00:00