nextcloud/tests/lib/Files/Cache
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
..
Wrapper refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
CacheTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
FileAccessTest.php fix(UserMountCache): Add back unique index for oc_mounts and use normal insert 2025-12-15 12:26:23 +01:00
HomeCacheTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
LocalRootScannerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
MoveFromCacheTraitTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
PropagatorTest.php fix(propagator): Improve lock behavior of propagator 2026-02-11 16:25:12 +01:00
ScannerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
SearchBuilderTest.php chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +01:00
UpdaterLegacyTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
UpdaterTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
WatcherTest.php test: add tests for watcher check filter 2025-12-31 12:23:04 +01:00