nextcloud/lib
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
..
composer Merge pull request #23819 from nextcloud/td/routing/move_things_around 2020-11-04 22:16:13 +01:00
l10n [tx-robot] updated from transifex 2020-11-01 02:18:23 +00:00
private Unlock when promoting to exclusive lock fails 2020-11-07 10:31:26 -05:00
public Add a function to get the unread count for multiple objects in one go 2020-11-04 11:01:21 +01:00
autoloader.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
base.php Do not setup the default FS on normal routes 2020-11-06 09:03:32 +01:00
versioncheck.php Allow to also use PHP 8.0 2020-09-18 09:16:30 +02:00