aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Lock/MemcacheLockingProvider.php
Commit message (Collapse)AuthorAgeFilesLines
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-22/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* restore shared lock ttl when releasingRobin Appelman2023-12-211-2/+76
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Refactors lib/private/Lock.Faraz Samapoor2023-09-261-5/+5
| | | | | | | | To improve code readability. Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com> Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Cleanup lock related codeCarl Schwan2022-05-121-35/+6
| | | | | | | | - Port to QueryBuilder - Improve the doc a bit - Add type hinting Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix locking logicRoeland Jago Douma2020-12-071-1/+1
| | | | | | The comparrison on php8 return true while <php8 it is false. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #21074 from jvsalo/shared-lock-multi-releaseMorris Jobke2020-07-061-1/+5
|\ | | | | Fix releasing a shared lock multiple times
| * Fix releasing a shared lock multiple timesJaakko Salo2020-05-241-1/+5
| | | | | | | | Signed-off-by: Jaakko Salo <jaakkos@gmail.com>
* | add proper paths to locking exceptionsRobin Appelman2020-06-301-3/+4
|/ | | | | | | while some code paths do wrap the "raw" locking exception into one with a proper path, not all of them do by adding the proper path to the original exception we ensure that we always have the usefull information in out logs Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* prevent lock values from going negative with memcache backendRobin Appelman2018-07-051-2/+8
| | | | | | | | This can be caused by the code releasing more locks then it acquires, once the lock value becomes negative it's likely that it will never be able to change into an exclusive lock again. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Log more info about locking conflicts for memcache locking backendsRobin Appelman2018-05-041-4/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Made locking providers strictRoeland Jago Douma2018-01-161-6/+7
| | | | | | | | * Added typehints * Added return types * Made strict Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-1/+2
|
* optimize releaselock for memcache based locking backendsRobin Appelman2016-04-291-2/+7
|
* Move \OC\Lock to PSR-4Roeland Jago Douma2016-04-141-0/+122