nextcloud/tests/lib/Files/Cache
Carl Schwan cbe4a26156
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>
(cherry picked from commit cae742d182)
2026-02-17 10:39:11 +01:00
..
Wrapper chore: run rector 2025-07-01 22:45:52 +02:00
CacheTest.php test: test moving cache items from cache jail with sharding 2025-08-22 19:21:33 +02:00
FileAccessTest.php fix(UserMountCache): Add back unique index for oc_mounts and use normal insert 2025-12-16 10:47:30 +01:00
HomeCacheTest.php chore: run rector 2025-07-01 22:45:52 +02:00
LocalRootScannerTest.php chore: run rector on tests 2025-06-12 18:31:58 +02:00
MoveFromCacheTraitTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
PropagatorTest.php fix(propagator): Improve lock behavior of propagator 2026-02-17 10:39:11 +01:00
ScannerTest.php refactor(querybuilder): Port away from qb::execute() in tests/ 2025-09-02 11:55:58 +02:00
SearchBuilderTest.php refactor(querybuilder): Port away from qb::execute() in tests/ 2025-09-02 11:55:58 +02:00
UpdaterLegacyTest.php chore: run rector 2025-07-01 22:45:52 +02:00
UpdaterTest.php chore: run rector 2025-07-01 22:45:52 +02:00
WatcherTest.php test: add tests for watcher check filter 2025-12-31 13:15:29 +01:00