summaryrefslogtreecommitdiffstats
path: root/lib/private/Lock
Commit message (Collapse)AuthorAgeFilesLines
* Update license headersChristoph Wurst2019-12-054-4/+15
| | | | 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>
* Code cleanup.Ole Ostergaard2019-03-211-2/+5
| | | | Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
* Add insertIgnoreConflict to Adapter and use it for for executing the file ↵Ole Ostergaard2019-03-211-11/+1
| | | | | | locking. Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
* Merge pull request #11942 from nextcloud/techdebt/noid/use-count-functionMorris Jobke2018-11-121-1/+1
|\ | | | | Use the defined func()->count() instead of manual counting
| * Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix UniqueConstraintViolationException while insert into oc_file_locksMorris Jobke2018-11-121-1/+12
|/ | | | | | | | | * fixes #9305 by not being prone to the race condition in insertIfNotExists * fixes #6899 by not using a query that can result in a deadlock * replaces the insertIfNotExists call with an insert which is wrapped into a try-catch block * followup to #12371 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* 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>
* Fixes false positive possible sql injection by phanMorris Jobke2018-04-161-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* dont keep shared database locks when running cli scriptsRobin Appelman2018-04-111-7/+35
| | | | | | For cli scripts we don't have the assumption that the universe will be cleaned up soon Signed-off-by: Robin Appelman <robin@icewind.nl>
* Made locking providers strictRoeland Jago Douma2018-01-164-32/+36
| | | | | | | | * Added typehints * Added return types * Made strict Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-201-0/+1
| | | | | | | | | | This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues. As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections. The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Update with robinJoas Schilling2016-07-214-4/+4
|
* Fix othersJoas Schilling2016-07-214-5/+9
|
* Update license headersLukas Reschke2016-05-261-2/+2
|
* Merge pull request #24387 from owncloud/locking-mark-reload-freeThomas Müller2016-05-031-0/+3
|\ | | | | free up memory when releasing the last shared lock
| * free up memory when releasing the last shared lockRobin Appelman2016-05-021-0/+3
| |
* | optimize releaselock for memcache based locking backendsRobin Appelman2016-04-292-2/+11
|/
* Let the querybuilder convertRoeland Jago Douma2016-04-141-4/+2
|
* chunk the cleaning up of shared locksRobin Appelman2016-04-141-7/+20
|
* Move \OC\Lock to PSR-4Roeland Jago Douma2016-04-144-0/+578