nextcloud/lib
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
..
composer Fix app password updating out of bounds 2020-09-03 20:03:47 +00:00
l10n [tx-robot] updated from transifex 2020-11-11 02:20:31 +00:00
private Unlock when promoting to exclusive lock fails 2020-11-12 19:07:35 +00:00
public inform the user when flow config data exceeds thresholds 2020-10-28 15:11:14 +00:00
autoloader.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
base.php Removed config.js 2020-11-09 17:14:36 +01:00
versioncheck.php Update license headers 2019-12-05 15:38:45 +01:00