nextcloud/lib
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
..
composer Fix app password updating out of bounds 2020-09-04 09:18:00 +02:00
l10n [tx-robot] updated from transifex 2020-11-11 02:20:39 +00:00
private Unlock when promoting to exclusive lock fails 2020-11-12 19:07:46 +00:00
public inform the user when flow config data exceeds thresholds 2020-11-09 18:15:02 +01:00
autoloader.php Update license headers 2019-12-05 15:38:45 +01:00
base.php Removed config.js 2020-11-09 17:13:33 +01:00
versioncheck.php Update license headers 2019-12-05 15:38:45 +01:00