nextcloud/tests/lib/Files
Carl Schwan cae742d182
fix(propagator): Improve lock behavior of propagator
Fix possible dead locks when running the propagator caused by two
requests updating the same amount rows in transactions.

- Lock rows always in the same deterministic order by sorting the
  path_hash first

- On all database outside of sqlite, also do first a SELECT FOR UPDATE
  to lock all the rows used in batch UPDATE calls, afterward to decrease
  the risk of two requests trying to lock the same rows

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-02-11 16:25:12 +01:00
..
AppData chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Cache fix(propagator): Improve lock behavior of propagator 2026-02-11 16:25:12 +01:00
Config chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +01:00
Mount perf(MountManager): use binary search to find mount in path 2026-01-29 12:54:14 +00:00
Node test: adjust tests to updated getById 2026-02-02 19:01:28 +01:00
ObjectStore perf(s3): Expose pre-signed urls for S3 2025-12-09 11:21:35 +01:00
Search refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
SimpleFS chore: setting test metadata in annotations is deprecated (use attributes) 2025-11-05 15:42:40 +01:00
Storage fix: make failed availability check apply in the same request 2025-11-06 20:08:44 +01:00
Stream chore: run rector 2025-07-01 22:45:52 +02:00
Template feat: Add Folder::getOrCreateFolder api 2025-11-24 11:10:52 +01:00
Type chore: make php-cs happy 2025-12-09 22:26:16 -05:00
Utils refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
EtagTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
FileInfoTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
FilenameValidatorTest.php chore: migrate to PHPUnit 11 2025-11-05 15:42:33 +01:00
FilesystemTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
PathVerificationTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
SetupManagerTest.php refactor(files): Rename IMountProviderArgs 2026-01-12 17:33:52 +01:00
ViewTest.php fix: Remove NOP ReflectionProperty::setAccessible calls 2026-01-07 15:23:20 +01:00