nextcloud/lib/private/Files
Ashod Nakashian a428cfeb26 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:46 +00:00
..
AppData Update license headers 2019-12-05 15:38:45 +01:00
Cache dont update mimetype when moving to trash 2020-07-31 17:33:24 +02:00
Config Transfer shares of the transferred root node 2020-09-17 19:01:48 +02:00
Mount set the mount id before calling storage wrapper 2020-08-31 15:23:09 +00:00
Node Properly hint exceptions thrown by getUserFolder 2020-04-06 16:47:55 +00: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:30 +00:00
Search Update license headers 2019-12-05 15:38:45 +01:00
SimpleFS Update license headers 2019-12-05 15:38:45 +01:00
Storage use exceptions for error signaling in writeStream 2020-07-31 17:33:10 +02:00
Stream harden seekable http stream a bit against failures 2020-05-22 15:29:43 +02:00
Type Properly add both mimetypes to secure mimetype mapping 2020-09-09 12:17:27 +00:00
Utils Update license headers for 18 2019-12-20 09:23:25 +01:00
FileInfo.php Update license headers 2019-12-05 15:38:45 +01:00
Filesystem.php fix: file quota was not applied in all cases 2020-09-17 07:13:27 +00:00
View.php Unlock when promoting to exclusive lock fails 2020-11-12 19:07:46 +00:00