aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Propagator.php
Commit message (Collapse)AuthorAgeFilesLines
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* fix: Check for wrapped retriable exceptionsJulius Härtl2023-05-021-2/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix unencrypted size calculation for files created before the Encryption ↵raul2022-10-031-1/+1
| | | | | | storage is enabled Signed-off-by: raul <raul@nextcloud.com>
* Fix: Prevent deadlocks during mtime/size/etag propagationraul2022-10-031-17/+29
| | | | Signed-off-by: raul <raul@nextcloud.com>
* store unencrypted size in the unencrypted_size columnRobin Appelman2022-08-161-0/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Revert "store unencrypted size in the unencrypted_size column"Robin Appelman2022-08-161-15/+0
| | | | | | This reverts commit 8238582e59b7b6ec03318bcf81bf47cce54af320. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix typos in lib/private subdirectoryluz paz2022-07-271-1/+1
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-021-0/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only request free space once for external sharesRobin Appelman2022-04-041-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* don't overwrite the etag from storage backends that already provide "good" etagsRobin Appelman2022-04-041-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use Query builder functionJoas Schilling2020-11-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix order of GREATEST for OracleJoas Schilling2020-11-061-3/+3
| | | | | | | | | As per https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions060.htm Oracle uses the first value to cast the rest or the values. So when the first value is a plain int, instead of doing the math, it will cast the expression to int and continue with a potential 0. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-161-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* dont set folder size to negative values during propagationRobin Appelman2019-11-261-2/+5
| | | | | | | | | | normally this shouldn't be a problem, but cache/storage desync might cause this so this adds some failsafe to ensure we dont corrupt the cache further the minimum value is set to -1 instead of 0 in order to triger a background scan on the folder and figure out the size properly Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #12865 from nextcloud/fix/do_not_propogate_in_appdataMorris Jobke2018-12-061-3/+12
|\ | | | | No need to propogate changes in appdata
| * No need to propogate changes in appdataRoeland Jago Douma2018-12-051-3/+12
| | | | | | | | | | | | | | | | Right now we propogate a lof of changes in appdata. So for example we propogate each and every preview that is added to the system. This has no real added value as far as I can tell. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Only execute query in propagateChange onceRoeland Jago Douma2018-12-051-2/+2
|/ | | | | | | The second execute statement should be inside the if block. Else it gets executed twice which makes no sense. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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/+2
| | | | | | | | | | 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>
* explicitly cast mtime to intRobin Appelman2016-11-031-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-1/+2
|
* fix mtime propagation on sqliteRobin Appelman2016-06-021-3/+3
|
* add propagator batchingRobin Appelman2016-06-021-0/+86
|
* do propagation in a single queryRobin Appelman2016-04-251-20/+47
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+74